wood burning stoves 2.0*
The moose likes Tomcat and the fly likes What does this Tomcat 4.1.18 error mean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "What does this Tomcat 4.1.18 error mean?" Watch "What does this Tomcat 4.1.18 error mean?" New topic
Author

What does this Tomcat 4.1.18 error mean?

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Hello Tomcat gurus!! I'm running Linux Mandrake 9 and I have just set up tomcat 4.1.18 and I also added a context for my web app. The problem is that I get a horrible server error 500 msg when I try to access all the jsps that conect to a MySql database. This app works fine in a Microsoft Windows environment but I'm trying to migrate away from Windows to Linux at the moment. The error I get is pasted below. Does anybody know what it means? Could it be because the docBase of my context points to a windows partition as in /mnt/windows/....? Please help!!
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
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
/usr/lib/tomcat4118/work/Standalone/localhost/ernieboy/rapid_comp_shop/out_of_stock_jsp.java:218: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)
if (pageContext != null) pageContext.handlePageException(t);
^
1 error

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Apache Tomcat/4.1.18
[ January 02, 2003: Message edited by: ernest fakudze ]

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Is the JDK on Mandrake the same as on Windows?
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Yes Mike, here are the details...
Windows:1.4.0
Mandrake:1.4.1

So you think this is the problem? Also, the versions of Tomcat are different. Should I try installing a different version of Tomcat in Mandrake?
Thanks for your time.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

By any change is your Mandrake Tomcat a 3.x release or something? While there's no "since" tag on the method you're invoking, it appears to be a recent addition to J2EE.
Differing JDK versions shouldn't be an issue here - it looks like the message "handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable)" says it all - your Tomcat J2EE jars apparently date back to the time when only a java.lang.Exception was accepted.


Customer surveys are for companies who didn't pay proper attention to begin with.
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Tim, my Tomcat Version is 4.1.18. I reckon I should go back to an earlier release and things should be fine. I had this problem before with Tomcat 4 in Windows. I went back to 3.X. Seems like there is something in 4.XX that I need to understand.
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Okay, I am now using Tomcat 3.3.1 and it works. However, this is unsatisfactory because this is an outdated version. Why can't Tomcat 4.xxxx work??
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
I finally found out what the problem was. The servlet.jar archive which I've used since Tomcat 3.XX did not support Tomcat 4.xx. I downloaded a new one and now everything works. Super!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What does this Tomcat 4.1.18 error mean?
 
Similar Threads
problem with compiling of jsp
Unable to compile jsp in tomcat
Apache Tomcat/4.1.12-LE-jdk14 on Windows XP
Tomcat installation problems!
problem runnigng the sample JSPs with tomcat 4.1.18