tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bwe...@techbarn.com (Brian Wedel)
Subject java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
Date Wed, 06 Aug 2003 19:18:55 GMT
Hi,

I can't start up a particular 3rd party webapp, I get the expection
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet. I made sure
that only one servlet.jar exists in my tomcat directory structure.  I'm
using a clean install of Tomcat 4.1.27 and to install the webapp I just
copied the .war file into the webapps folder, tomcat expanded it but
couldn't install it.

Thanks,
-Brian Wedel

Here is the error from the log file...

2003-08-06 14:07:55 HostConfig[localhost] Error deploying web application
directory mapxtreme45
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 java.lang.ClassLoader.loadClass(ClassLoader.java:292)
        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.jav
a:1356)
        at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
5)
        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.start(StandardContext.java:3609)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
        at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
        at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
        at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


Mime
View raw message