tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Fury <mattfur...@yahoo.com>
Subject Tomcat 4.1.12 Servlet Error
Date Fri, 04 Oct 2002 20:29:11 GMT
I believe this is sort of a cross post between Dev and
User.

Again an error I get with running the Tomcat Service
but NOT the Tomcat DOS Command line..

I am getting:

java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
	at java.lang.ClassLoader.defineClass0(Native Method)
	at
java.lang.ClassLoader.defineClass(ClassLoader.java:502)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
	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:299)
	at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:874)
	at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:658)
	at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:408)
	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(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.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.valves.AccessLogValve.invoke(AccessLogValve.java:469)
	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.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
	at java.lang.Thread.run(Thread.java:536)


For some reason ONLY when I run Tomcat as a service.
It ran fine in previous versions.

Here are the lines I have in the web.xml file.

<servlet>
     <servlet-name>Download</servlet-name>
     <servlet-class>DownloadServlet</servlet-class>
     <init-param>
      <param-name>dir</param-name>
     
<param-value>D:\\inetpub\\intranet_root</param-value>
     </init-param>
</servlet>

Did I miss something or has the web.xml changed?

Thanks for help!

-Matt

=====
------------------------
int myName() {
  cout << "-Matt Fury \n";
  return 0;
}
------------------------

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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


Mime
View raw message