ashwin venkat wrote:it is trying to access a method that is not there in javax.servlet.jar , but in jsp-api.jar .
That makes no sense. javax.servlet is a package, not a jar file. The
servlet API is in servlet-api.jar.
Again, it makes no difference which jar file the class is in; both jar files are in Tomcat's class path.
Have you checked to make sure that both jar files are in Tomcat's lib folder? Are you sure you did
not copy these jar files to your WEB-INF/lib folder? (which can cause all kinds of weird errors.)