aspose file tools*
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 Java 8 in Action this week in the Java 8 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?
 
 
subject: java.lang.NoSuchMethodError: javax.servlet.ServletContext.
 
Similar Threads
Ljava/util/Collection&#59; not found
java.lang.NoSuchMethodError !!
loggin error
Localhost leads to nowhere
Problem with calling constructor from JNI code