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 195055 - NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
Summary: NoSuchMethodError: javax.servlet.ServletContext.getJspConfigDescriptor()Ljava...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Petr Jiricka
URL:
Keywords:
: 207604 222165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-04 00:08 UTC by jag
Modified: 2014-02-17 10:46 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173139


Attachments
stacktrace (1.59 KB, text/plain)
2011-02-04 00:08 UTC, jag
Details
Log file for reported defect (66.11 KB, application/octet-stream)
2011-06-14 04:47 UTC, EntilZhaPR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jag 2011-02-04 00:08:01 UTC
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)
Comment 1 jag 2011-02-04 00:08:06 UTC
Created attachment 105637 [details]
stacktrace
Comment 2 EntilZhaPR 2011-06-09 04:04:09 UTC
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.
Comment 3 Petr Jiricka 2011-06-09 13:40:30 UTC
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?
Comment 4 David Konecny 2011-06-09 20:04:53 UTC
javax.servlet.ServletContext.getJspConfigDescriptor() was added in Servlet 3.0. So it looks like older version of Servlet API jar is interfering.
Comment 5 EntilZhaPR 2011-06-14 04:47:11 UTC
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.
Comment 6 Petr Jiricka 2011-06-14 12:20:54 UTC
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.
Comment 7 EntilZhaPR 2011-06-15 01:18:28 UTC
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.
Comment 8 Petr Jiricka 2011-06-15 08:00:29 UTC
Ok, thanks for confirming. Resolving the issue as invalid.
Comment 9 Marian Mirilovic 2012-11-15 08:07:59 UTC
*** Bug 207604 has been marked as a duplicate of this bug. ***
Comment 10 Marian Mirilovic 2012-11-15 08:08:23 UTC
*** Bug 222165 has been marked as a duplicate of this bug. ***
Comment 11 123komal123 2014-02-15 03:21:02 UTC
can u please help me out.. i mstill struggling with it
Comment 12 Martin Fousek 2014-02-17 10:46:00 UTC
(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.