tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Senko <pse...@cisco.com>
Subject Very strange behavior, please, HELP (GenericServlet problem, error 500)
Date Thu, 05 Jun 2003 19:35:33 GMT
Hi All,

I've got Tomcat 4.1.18 + Apache 1.39 (Solaris, Sparc); Tomcat itself 
works OK (shows examples, docs and all stuff).

When I try to execute one servlet, it gives me error 500 (see error text 
below).
I've put into CLASSPATH everything *.jar (then restarted Tomcat and 
Apache), copied all the jars into <tomcat>/common/lib but the errors 
still apprears.
I've also edited catalina.sh and hardcoded CLASSPATH there just to be 
sure Tomcat wouldn't miss it for some mistique reason. Still no progress.

Here is CLASSPATH:
/usr/java1.2/jre/lib/exactvm.jar:/usr/java1.2/jre/lib/rt.jar:/usr/java1.2/lib/dt.jar:/usr/java1.2/jre/lib/ext/javax/servlet:/usr/java1.2/jre/lib/ext:/usr/java1.2/lib/tools.jar:/usr/java1.2/lib/dt.jar:/usr/java1.2/src.jar:/metrics/tomcat/common/lib/naming-resources.jar:/metrics/tomcat/common/lib/naming-factory.jar:/metrics/tomcat/common/lib/naming-common.jar:/metrics/tomcat/common/lib/mail.jar:/metrics/tomcat/common/lib/jta.jar:/metrics/tomcat/common/lib/jndi.jar:/metrics/tomcat/common/lib/jdbc2_0-stdext.jar:/metrics/tomcat/common/lib/jasper-runtime.jar:/metrics/tomcat/common/lib/jasper-compiler.jar:/metrics/tomcat/common/lib/commons-pool.jar:/metrics/tomcat/common/lib/commons-logging-api.jar:/metrics/tomcat/common/lib/commons-dbcp.jar:/metrics/tomcat/common/lib/commons-collections.jar:/metrics/tomcat/common/lib/ant.jar:/metrics/tomcat/common/lib/activation.jar:/metrics/tomcat/common/lib/chart.ext.jar:/metrics/tomcat/common/lib/chart.jar:/usr/java:.:/metrics/tomcat/common/lib/servlet.jar:/metrics/tomcat/common/lib:/metrics/tomcat/common/lib/chartServer.jar

I've seen the similar errors topics where the advice "include tools.jar 
into CLASSPATH" seems to be working.
I'm kind of new in Servlets, so I don't really know what to dig. Any 
advice will be appreciated.

Thanks,
Pavel.

here it is, the error:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: Cannot allocate servlet instance for 
path /servlet/com.objectplanet.chart.ChartServlet
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(ServletException.java:132)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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(Compiled Code)
at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
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(Compiled Code)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)


root cause

java.lang.NoClassDefFoundError: javax/servlet/GenericServlet
at java.lang.ClassLoader.findLoadedClass(Native Method)
at java.lang.ClassLoader.findLoadedClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
at org.apache.catalina.loader.WebappClassLoader.loadClass(Compiled Code)
at org.apache.catalina.core.StandardWrapper.loadServlet(Compiled Code)
at org.apache.catalina.core.StandardWrapper.allocate(Compiled Code)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:416)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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(Compiled Code)
at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
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(Compiled Code)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message