Classpath problem ?

It is reporting :

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

Which means it cannot find the jar file that this class is in!

Jonathan



>
>I have been able to run both a simple servlet and a simple JSP page from
>within the soap context.  I have done the initial set up a couple of times
>as well as tried to uninstall and reinstall tomcat.  All other of my Tomcat
>contexts work without error, including struts, 2 of my own web 
>applications,
>and all the default contexts that come with Tomcat.
>
>When I try to run the rpcrouter I get this error(see stack trace below), 
>the
>root cause tellimg me it cannot find HTTPServlet, however I can run a hello
>world servlet just fine in the same directory, same context.
>
>Also, it was working at one time and am having a hard time re-tracing my
>steps of what I might have changed to cause it to stop working.
>
>Thanks again for trying to help me track this one down.
>
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented it
>from fulfilling this request.
>
>exception
>
>javax.servlet.ServletException: Error allocating a servlet instance
>       at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:662)
>       at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:214)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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.ja
>va:191)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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:2396)
>       at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>       at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>       at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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.invok
>eNext(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:405)
>       at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>ction(Http11Protocol.java:380)
>       at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>       at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:533)
>       at java.lang.Thread.run(Thread.java:536)
>
>
>root cause
>
>java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
>       at java.lang.ClassLoader.defineClass0(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
>       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>       at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1340)
>       at
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
>a:1274)
>       at
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87
>4)
>       at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
>       at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:214)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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.ja
>va:191)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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:2396)
>       at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>       at
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:170)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>       at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>       at
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(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.invok
>eNext(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:405)
>       at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>ction(Http11Protocol.java:380)
>       at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>       at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:533)
>       at java.lang.Thread.run(Thread.java:536)
>
>----- Original Message -----
>From: "Jonathan Roberts" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, September 30, 2002 12:50 AM
>Subject: Re: Unknown reason for error
>
>
> >
> > Michael,
> >
> > I would suggest going back thorough the intial set up.
> >
> > 1.
> > soap
> > Do you get the usual message for
> >
> > http://%SERVER%/soap/servlet/messagerouter
> > can you use localhost (or ip address) eg.
> > http://localhost:8080/soap/servlet/messagerouter
> >
> > 2.
> > tomcat
> > Is tomcat running -
> > If you cant see a html page then it sounds like apache or iis.
> >
> > Try running a simple jsp page in the soap server directory - e.g.
> >
> >
> > <% String  message1 = "hello"%>
> >
> > my message is <%= message1%>
> >
> > there are only be a few aspects which can be in error :
> >
> > 1.  iis/apache
> >
> > 2. tomcat
> >
> > 3. (dont think its the soap service since you are running the jsp)
> >
> > 4. server that soap is on!
> >
> > >
> > >I can no longer get to any of the jsp pages on the admin page:
> > >http://%SERVER%/soap/admin/index.html
> > >
> > >I am running soap2.3.1 tomcat 4.1.12 downloaded latest version of 
>xerces,
> > >mail, and activation and all are in class path.  Following is stack 
>trace
> > >which is giving me little to go on.  Any help would be much 
>appreciated.
> > >
> > >
> > >type Exception report
> > >
> > >message
> > >
> > >description The server encountered an internal error () that prevented 
>it
> > >from fulfilling this request.
> > >
> > >exception
> > >
> > >org.apache.jasper.JasperException: javax/servlet/http/HttpServlet
> > > at
> >
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
>248)
> > > at
> > 
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:247)
> > > at
> >
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:193)
> > > at
> >
> >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:260)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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.j
>ava:191)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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:2396)
> > > at
> >
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(StandardPipeline.java:643)
> > > at
> >
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>.java:170)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(StandardPipeline.java:641)
> > > at
> >
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>2)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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.jav
>a:174)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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:405)
> > > at
> >
> >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>ection(Http11Protocol.java:380)
> > > at
> >
> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> > > at
> >
> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:533)
> > > at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> > >root cause
> > >
> > >javax.servlet.ServletException: javax/servlet/http/HttpServlet
> > > at
> >
> >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
>pl.java:497)
> > > at org.apache.jsp.undeploy_jsp._jspService(undeploy_jsp.java:94)
> > > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
>204)
> > > at
> > 
> >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> >
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:247)
> > > at
> >
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:193)
> > > at
> >
> >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:260)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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.j
>ava:191)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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:2396)
> > > at
> >
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(StandardPipeline.java:643)
> > > at
> >
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>.java:170)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(StandardPipeline.java:641)
> > > at
> >
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>2)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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.jav
>a:174)
> > > at
> >
> >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>keNext(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:405)
> > > at
> >
> >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>ection(Http11Protocol.java:380)
> > > at
> >
> >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
> > > at
> >
> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:533)
> > > at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> >
> >
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to