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.
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)
Created attachment 115145 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=178432
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
*** This bug has been marked as a duplicate of bug 195055 ***