File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 5.5.23 -The server encountered an internal error () .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5.23 -The server encountered an internal error () .." Watch "Tomcat 5.5.23 -The server encountered an internal error () .." New topic
Author

Tomcat 5.5.23 -The server encountered an internal error () ..

venkatesh pendharkar
Ranch Hand

Joined: Apr 29, 2006
Posts: 106
HI all,
I am using Tomcat 5.5.23 & jre 1.5.0. I am able to start the tomcat server properly & am also able to access the tomcat home page using http://localhost:8080 . But when I execute any of the JSP examples which are given on homepage it gives the following error,:-

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:809)


root cause

java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext.getVariableResolver()Ljavax/servlet/jsp/el/VariableResolver;
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:929)
org.apache.jsp.jsp2.el.basic_002darithmetic_jsp._jspService(basic_002darithmetic_jsp.java:44)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:809)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.

someone please help me in this
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Is this a fresh install?
Have you brought in any jar files that might conflict with Tomcat's; either in your app or in the tomcat/common/lib directory?

Did you put a j2ee.jar in your JDK's directory anywhere?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
venkatesh pendharkar
Ranch Hand

Joined: Apr 29, 2006
Posts: 106
yes this is a fresh install, & from the beginning itself i started getting error. I have following jar files in my lib folder:-
commons-el.jar
jasper-compiler.jar
jasper-compiler-jdt.jar
jasper-runtime.jar
jsp-api.jar
naming-factory.jar
naming-factory-dbcp.jar
naming-resources.jar
servlet-api.jar

I first thought servlet.jar file might be missing thats why added it in lib folder but still its giving me the same error
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.5.23 -The server encountered an internal error () ..