wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Problem with Tomcat 4.1.27 jars and classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with Tomcat 4.1.27 jars and classes" Watch "Problem with Tomcat 4.1.27 jars and classes" New topic
Author

Problem with Tomcat 4.1.27 jars and classes

Sergio Barreros
Greenhorn

Joined: Sep 09, 2003
Posts: 21
I have installed tomcat 4 and it works fine, but when I add my classes under one of my applications under the /WEB-INF folder and try to restart tomcat it will not restart and it will give me the message below, the same thing happens if I copy a jar file to the $JAVA_HOME/jre/lib/ext directory, I need to do this so every application in tomcat can use that jar file.
I really hope you guys can help me, this is driving me insane, besides the fact that I need to launch this webserver within the next few days.
Thanks everyone for any help!
Sep 22, 2003 9:35:09 AM org.apache.commons.modeler.Registry loadRegistry
Sep 22, 2003 9:35:09 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 22, 2003 9:35:09 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 22, 2003 9:35:10 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 22, 2003 9:35:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Apache
Apache Tomcat/4.1.27
Exception during startup processing
java.lang.reflect.InvocationTargetException
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)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1356)
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.start(StandardContext.java:3609)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
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)
... 5 more
[ September 22, 2003: Message edited by: Sergio Barreros ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Tomcat 4.1.27 jars and classes
 
Similar Threads
Even though i have the servlet jar in my tomcat home common lib it is not work
Tomcat Startup Issues
exception in deploying my webapp in tomcat4.1
Tomcat fail when a war file is extracted to web apps
Make CLASSPATH work in Tomcat 4.1.12