When starting Tomcat l get “java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat” — Why?
Location: http://www.jguru.com/faq/view.jsp?EID=228619 Created: Oct 14, 2000 Modified: 2000-10-15 13:12:05.267 Author: Serge Knystautas (http://www.jguru.com/guru/viewbio.jsp?EID=100012) Question originally posed by Steve Jones (http://www.jguru.com/guru/viewbio.jsp?EID=212259 You are missing the webserver.jar from your classpath. The start script on unix dynamically builds your classpath, including all the files in the server’s lib directory. On Windows, you have to manually edit this, although it should have webserver.jar included out of the box. Try editing the tomcat.bat or tomcat.sh in your bin directory. This bat/script file is referenced by virtuall all scripts in this directory. You can see if it’s properly finding the TOMCAT_HOME environment variable, and if it’s properly defining your classpath.
Related Questions
- When I try to startup Apache JServ I get an error message starting with "java.lang.NoClassDefFoundError: javax/servlet/...". Whats wrong?
- When starting Tomcat l get "java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat" -- Why?
- Why do I get java.lang.NoClassDefFoundError: org/apache/commons/jelly/demos/HomepageBuilder ?