tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Simms <jonat...@embassynetworks.com>
Subject Servlet jsp is currently unavailable
Date Wed, 01 Oct 2003 09:10:01 GMT
Hello all,

I'm new to tomcat and I've been tearing my hair out for the past week
trying to get the simplest examples to run. 

I'm running a clean install of tomcat 4.1.27, and have been able to run
the struts-examples, the admin webapp (to my great surprise), and even
some of the examples from my struts textbook.

the problem i've been having is understanding the error messages so that
i can figure out what's wrong. 

Is there any way of getting better/different errors than simply just the
HTTP/50x messages? Is there a way to trace execution through the program? 
How difficult is it to set up a debugger to work with tomcat, so that I 
can see what line is causing the server to choke?

this is my log file from a recent attempt at playing with struts, can someone
please help, and tell me what this means:

---


2003-10-01 04:57:14 StandardWrapper[/test:invoker]: Loading container servlet invoker
2003-10-01 04:57:14 StandardWrapper[/test:jsp]: Marking servlet jsp as unavailable
2003-10-01 04:57:14 StandardContext[/test]: Servlet /test threw load() exception
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.jasper.servlet.JspServlet
or a class it depends on
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2568)
	at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:802)
	at org.apache.catalina.servlets.HTMLManagerServlet.reload(HTMLManagerServlet.java:501)
	at org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:151)
	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:256)
	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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
	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.StandardContext.invoke(StandardContext.java:2416)
	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:171)
	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:601)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2568)
	at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:802)
	at org.apache.catalina.servlets.HTMLManagerServlet.reload(HTMLManagerServlet.java:501)
	at org.apache.catalina.servlets.HTMLManagerServlet.doGet(HTMLManagerServlet.java:151)
	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:256)
	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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
	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.StandardContext.invoke(StandardContext.java:2416)
	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:171)
	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:601)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
	at java.lang.Thread.run(Thread.java:536)

2003-10-01 04:57:14 StandardManager[/test]: Starting
2003-10-01 04:57:14 StandardManager[/test]: Force random number initialization starting
2003-10-01 04:57:14 StandardManager[/test]: Seeding random number generator class java.security.SecureRandom
2003-10-01 04:57:14 StandardManager[/test]: Seeding of random number generator has been completed
2003-10-01 04:57:14 StandardManager[/test]: Force random number initialization completed
2003-10-01 04:57:14 StandardManager[/test]: Start: Loading persisted sessions
2003-10-01 04:57:14 StandardManager[/test]: Loading persisted sessions from SESSIONS.ser
2003-10-01 04:57:14 StandardManager[/test]: Creating custom object input stream for class
loader WebappClassLoader
  available:
  delegate: false
  repositories:
  required:
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@1a457b6

2003-10-01 04:57:14 StandardManager[/test]: Loading 0 persisted sessions
2003-10-01 04:57:14 StandardManager[/test]: Finish: Loading persisted sessions
2003-10-01 04:57:14 StandardContext[/test]: Reloading this Context is completed
2003-10-01 04:57:14 HTMLManager: list: Listing contexts for virtual host 'localhost'
2003-10-01 04:57:14 WebappLoader[/test]: BACKGROUND THREAD Starting
2003-10-01 04:57:17 StandardContext[/test]: Mapping contextPath='/test' with requestURI='/test/index.jsp'
and relativeURI='/index.jsp'
2003-10-01 04:57:17 StandardContext[/test]:   Trying exact match
2003-10-01 04:57:17 StandardContext[/test]:   Trying prefix match
2003-10-01 04:57:17 StandardContext[/test]:   Trying extension match
2003-10-01 04:57:17 StandardContext[/test]:  Mapped to servlet 'jsp' with servlet path '/index.jsp'
and path info 'null' and update=true
2003-10-01 04:57:17 StandardWrapperValve[jsp]: Servlet jsp is currently unavailable
2003-10-01 04:57:18 StandardContext[/test]: Mapping contextPath='/test' with requestURI='/test/index.jsp'
and relativeURI='/index.jsp'
2003-10-01 04:57:18 StandardContext[/test]:   Trying exact match
2003-10-01 04:57:18 StandardContext[/test]:   Trying prefix match
2003-10-01 04:57:18 StandardContext[/test]:   Trying extension match
2003-10-01 04:57:18 StandardContext[/test]:  Mapped to servlet 'jsp' with servlet path '/index.jsp'
and path info 'null' and update=true
2003-10-01 04:57:18 StandardWrapperValve[jsp]: Servlet jsp is currently unavailable
2003-10-01 04:57:22 StandardContext[/test]: Mapping contextPath='/test' with requestURI='/test/'
and relativeURI='/'
2003-10-01 04:57:22 StandardContext[/test]:   Trying exact match
2003-10-01 04:57:22 StandardContext[/test]:   Trying prefix match
2003-10-01 04:57:22 StandardContext[/test]:   Trying extension match
2003-10-01 04:57:22 StandardContext[/test]:   Trying default match
2003-10-01 04:57:22 StandardContext[/test]:  Mapped to servlet 'default' with servlet path
'/' and path info 'null' and update=true
2003-10-01 04:57:22 StandardContext[/test]: Mapping contextPath='/test' with requestURI='/test/index.jsp'
and relativeURI='/index.jsp'
2003-10-01 04:57:22 StandardContext[/test]:   Trying exact match
2003-10-01 04:57:22 StandardContext[/test]:   Trying prefix match
2003-10-01 04:57:22 StandardContext[/test]:   Trying extension match
2003-10-01 04:57:22 StandardContext[/test]:  Mapped to servlet 'jsp' with servlet path '/index.jsp'
and path info 'null' and update=true
2003-10-01 04:57:22 StandardWrapperValve[jsp]: Servlet jsp is currently unavailable
2003-10-01 04:58:20 WebappLoader[/test]:  Stopping background thread
2003-10-01 04:58:20 WebappLoader[/test]: BACKGROUND THREAD Stopping
2003-10-01 04:58:20 WebappLoader[/test]:  Starting background thread
2003-10-01 04:58:20 WebappLoader[/test]: BACKGROUND THREAD Starting
2003-10-01 04:58:24 StandardContext[/test]: Mapping contextPath='/test' with requestURI='/test/index.jsp'
and relativeURI='/index.jsp'
2003-10-01 04:58:24 StandardContext[/test]:   Trying exact match
2003-10-01 04:58:24 StandardContext[/test]:   Trying prefix match
2003-10-01 04:58:24 StandardContext[/test]:   Trying extension match
2003-10-01 04:58:24 StandardContext[/test]:  Mapped to servlet 'jsp' with servlet path '/index.jsp'
and path info 'null' and update=true
2003-10-01 04:58:24 StandardWrapperValve[jsp]: Servlet jsp is currently unavailable




---------------------------------------------------------------------
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