I believe that this only a problem of documentation.
If you followed the on-line instructions (tomcat.apache.org, 6.0, documentation, download etc..), you probably downloaded and installed the "Windows Service" version. That version works a bit differently from the usual version under Unix/Linux. You set the JVM parameters for startup with the tomcat6w.exe program, and run the Tomcat Service using the tomcat6.exe program. That version of Tomcat does not have the correct setup or files to run it from the .bat files. If you want to run it from the .bat files, then download the "zip" version and install it. Unfortunately, all this is not very clear at first from the on-line download page nor the documentation pages. It takes a while for the non-initiated to get a clear idea of what is going on there.


Stefan Sigfried wrote:
I get this error when trying to start Tomcat using catalina.bat.

Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_07

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/s
tartup/Bootstrap
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstr
ap
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin>

It looks as some .jar file is wrong or missing. Why is the main class missing?


The actual call made by catalina.bat looks like this (adding a line to do echo in the catalina.bat file).


"C:\Program Files\Java\jdk1.6.0_07\bin\java" -Djava.util.logging.manager=org.ap ache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="C:\downloads\ap ache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\conf\logging.properties"

-Djava.endorsed.dirs="C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomc at-6.0.18-src\endorsed" -classpath "C:\Program Files\Java\jdk1.6.0_07\lib\tools. jar;C:\downloads\apache\apache-tomcat-6.0.18-src\apache-tomcat-6.0.18-src\bin\bo otstrap.jar" -Dcatalina.base="C:\downloads\apache\apache-tomcat-6.0.18-src\apach e-tomcat-6.0.18-src" -Dcatalina.home="C:\downloads\apache\apache-tomcat-6.0.18-s rc\apache-tomcat-6.0.18-src" -Djava.io.tmpdir="C:\downloads\apache\apache-tomcat -6.0.18-src\apache-tomcat-6.0.18-src\temp" org.apache.catalina.startup.Bootstrap
start



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to