  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-10-03 - By Larry Isaacs
Back If I recall correctly, in JSP spec 1.1, the argument for handlePageException() was Exception. In JSP spec 1.2 and later, the argument is Throwable. It would appear you have a servlet.jar from Servlet 2.2/JSP 1.1 somehow becoming the jar this JSP is running against, causing the method signature mismatch. Make sure you don't have a copy of servlet.jar in the WEB-INF/lib of your webapp or somewhere else involved with the running server, such as in the lib/ext directory of your JDK or JRE.
In Tomcat 6, the JSP API classes are found in jsp-api.jar and servlet API classes are found in servlet-api.jar, with both located in the lib directory of the Tomcat 6 installation. Any servlet.jar you find involved with this server would contain out of date classes for this server.
Cheers, Larry
> -- --Original Message-- -- > From: niblz [mailto:krono@(protected)] > Sent: Wednesday, October 03, 2007 4:29 AM > To: users@(protected) > Subject: Fresh install of Tomcat - getting frustrated with the JSP no > working > > > Hello I have install a new fresh Tomcat 6, and I have JAVA 6 (all the > newest > versions from their sites) > I have tried many things, but still while html and servlet work, JSP > just > won't work! > I even tried using this Tomcat version and help - > http://www.coreservlets.com/Apache-Tomcat-Tutorial/ > http://www.coreservlets.com/Apache-Tomcat-Tutorial/ > But still nothing > This are the errors I get > type Exception report message description The server encountered an > internal error () that prevented it from fulfilling this request. > exception > org.apache.jasper.JasperException: Unable to compile class for JSP: An > error occurred at line: 22 in the generated java fileThe method > getJspApplicationContext(ServletContext) is undefined for the type > JspFactory An error occurred at line: 82 in the generated java fileThe > method handlePageException(Exception) in the type PageContext is not > applicable for the arguments (Throwable) Stacktrace: > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH > andler.java:92) > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j > ava:330) > org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 > 23) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j > ava:566) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j > ava:317) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 > ) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The > full > stack trace of the root cause is available in the Apache Tomcat/6.0.14 > logs > > and this one > HTTP Status 500 - > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > -- ------ > type Exception report message description The server encountered an > internal error () that prevented it from fulfilling this request. > exception > org.apache.jasper.JasperException: Unable to compile class for JSP: > Stacktrace: > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH > andler.java:85) > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j > ava:330) > org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:4 > 15) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:308) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j > ava:566) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j > ava:308) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320 > ) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > javax.servlet.http.HttpServlet.service(HttpServlet.java:865) note The > full > stack trace of the root cause is available in the Apache Tomcat/6.0.10 > logs. > > > What can I do please? > > Thank you! > > -- > View this message in context: http://www.nabble.com/Fresh-install-of- > Tomcat---getting-frustrated-with-the-JSP-no-working- > tf4560454.html#a13014781 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > To start a new topic, e-mail: users@(protected) > To unsubscribe, e-mail: users-unsubscribe@(protected) > For additional commands, e-mail: users-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |