aspose file tools
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 Badass: Making Users Awesome this week in the Game Development 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

Problem with Tomcat 4.1.27 jars and classes

Sergio Barreros

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
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.main(
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(
at Method)
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.loader.WebappClassLoader.loadClass(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at org.apache.catalina.startup.Catalina.execute(
at org.apache.catalina.startup.Catalina.process(
... 5 more
[ September 22, 2003: Message edited by: Sergio Barreros ]
I agree. Here's the link:
subject: Problem with Tomcat 4.1.27 jars and classes