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 Dev (Build 201102020000) VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261 OS: Mac OS X User Comments: jag: Attempting File/Save on a jsp file 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 105637 [details] stacktrace
Is there a solution to this problem. I am creating a netbeans project and can't do anything because this error seems to be preventing me from doing so. I create a java ee web application and after I click finish after selecting frameworks nothing happens and all the options are grayed out except help.
Thanks for the report, I never saw this problem before. Could you please attach the IDE log file? Are you saying that this happens with a clean IDE, when you create a web project for the first time?
javax.servlet.ServletContext.getJspConfigDescriptor() was added in Servlet 3.0. So it looks like older version of Servlet API jar is interfering.
Created attachment 108885 [details] Log file for reported defect Here is the contents of the view->log for the error I reported. I was able to create my project etc. in 6.9.1 but haven't tried moving the project and using it in 7.0.
It looks like you have several jar files (e.g. el-api.jar, jsp-api.jar, servlet-api.jar) under /Library/Java/Extensions, and these files are added to the classpath. Can you try removing these files and restarting the IDE to see if it helps? Do you know why the files were added to this folder and what they are needed for? Thanks.
That seems to have eliminated the issue. Some of the jars were added for a prior project that I was working on that I don't need anymore. Thanks for the help. I will comment again if it seems like it isn't working again.
Ok, thanks for confirming. Resolving the issue as invalid.
*** Bug 207604 has been marked as a duplicate of this bug. ***
*** Bug 222165 has been marked as a duplicate of this bug. ***
can u please help me out.. i mstill struggling with it
(In reply to 123komal123 from comment #11) > can u please help me out.. i mstill struggling with it 123komal123, see http://netbeans.org/bugzilla/show_bug.cgi?id=207604#c3. It looks that you have copied additional servlet JAR into your JDK home.