This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207604 - NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
Summary: NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljava...
Status: RESOLVED DUPLICATE of bug 195055
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 20:39 UTC by kellbm21
Modified: 2012-11-15 08:07 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178432


Attachments
stacktrace (4.72 KB, text/plain)
2012-01-21 20:39 UTC, kellbm21
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kellbm21 2012-01-21 20:39:45 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
GUEST: Trying to open a JSP file for viewing. It didn't open and just got stuck on "Loading....", with this error occuring.

kellbm21: I was trying to open a .jsp file when this error occured.  I just installed NetBeans 7.1

GUEST: I importeda NetBeans 6.9 project folder and when I double clicked a JSP file in the left pane to view it in the right pane it didn't load i.e. it got stuck at Loading... and down in the status bar I saw the red Unexpected Exception.




Stacktrace: 
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
   at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:104)
   at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:194)
   at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:257)
   at org.apache.jasper.compiler.ExtractPageData.extractPageData(ExtractPageData.java:97)
   at org.apache.jasper.compiler.ExtractPageData.isXMLSyntax(ExtractPageData.java:77)
   at org.netbeans.modules.web.jspparser_ext.WebAppParseSupport.getJspOpenInfo(WebAppParseSupport.java:247)
Comment 1 kellbm21 2012-01-21 20:39:48 UTC
Created attachment 115145 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-01-23 14:27:58 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=178432
Comment 3 Martin Fousek 2012-05-04 13:40:09 UTC
This issue is similar to #195055. You shouldn't copy any JARs inside JDK/JRE directories and it looks like (in all messages.logs I went thru) that users are copying servlet-api.jar inside the <jdk_dir>/jre/lib/ext directory which is added by default to classpath then.

Please use "-cp" switch if you need to include any .JAR to java, javac classpath, see:
http://stackoverflow.com/questions/8347157/java-compile-error-servlet-api-jar
Comment 4 Marian Mirilovic 2012-11-15 08:07:59 UTC

*** This bug has been marked as a duplicate of bug 195055 ***