NoClassDefFoundError: org/apache/catalina/startup/Bootstrap when running tomcat from exe/as service

22,966

try to update the service by executing (adapt to your path):

  C:\> tomcat6 //US//Tomcat6 --Description="Apache Tomcat Server - http://tomcat.apache.org/ " \
  C:\> --Startup=auto --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar

US means: update service.
This should fix the classpath.

All the necessary information are in the official website:
http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html

Share:
22,966
Vinc
Author by

Vinc

Updated on September 13, 2020

Comments

  • Vinc
    Vinc over 3 years

    I have been running a Tomcat 6.0.37 server for quite some time via the startup.bat.Now I want to run tomcat as a service that starts automatically when the machine starts up.

    I created the service with the bat : service.bat install.This created the service succesfully.When trying to start it however I get the error in the title.I then tried running just the exe(tomcat6.exe).This gave me the exact same error.

    I have checked that CATALINA_HOME,JAVA_HOME and JRE_HOME is set correctly.bootstrap.jar does exist in tomcat/bin.Path to the jvm is correct.jvm.dll does exist in jre6/bin/server.

    I also found a thread with a different class missing where they said rt.jar was missing from the jre,I checked this and mine exists in jre6/lib/.I really don't have anymore ideas as to what can be wrong.

  • Vinc
    Vinc over 10 years
    Sorry for the late accept,fixed my problem quite some time ago,but cant remember how.Got the problem again recently and this seemed to do the trick.