This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes java.lang.NoSuchMethodError: javax.servlet.ServletContext. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "java.lang.NoSuchMethodError: javax.servlet.ServletContext." Watch "java.lang.NoSuchMethodError: javax.servlet.ServletContext." New topic
Author

java.lang.NoSuchMethodError: javax.servlet.ServletContext.

krishna ven
Greenhorn

Joined: Sep 05, 2007
Posts: 2
Hi All,
Can anybody help me on this error.
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String;)Ljava/util/Set
I have the servlet-api.jar in the classpath but
getting the same error.

thanks in Advance
krishna@123
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What version of the servlet spec does your container support?
This method was added in Servlet Spec 2.3


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
krishna ven
Greenhorn

Joined: Sep 05, 2007
Posts: 2
i am using servlet-api 2.4 ,

can help me
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Can you post the part of the code that calls getResourcePaths?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoSuchMethodError: javax.servlet.ServletContext.