From: markt Tomcat can then be run as a daemon using the following commands.-debug option is useful
to debug issues running jsvc.
The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be
- used as a template for starting Tomcat automatically at boot time from
- /etc/init.d. The file is currently setup for running
- Tomcat 4.1.x, so it is necessary to edit it and change the classname
- from BootstrapService to Bootstrap.
The file
+ $CATALINA_HOME/bin/commons-daemon-1.0.x-native-src/unix/native/Tomcat5.sh
+ can be used as a template for starting Tomcat automatically at
+ boot time from /etc/init.d. The file is currently setup for
+ running Tomcat 5.5.x, so it will be necessary to edit it a little.
Note that the Commons-Daemon JAR file must be on your runtime classpath - to run Tomcat in this manner. The Commons-Daemon JAR file is in the Class-Path - entry of the bootstrap.jar manifest, but if you get a ClassNotFoundException - or a NoClassDefFoundError for a Commons-Daemon class, add the Commons-Daemon - JAR to the -cp argument when launching jsvc.
+ to run Tomcat in this manner. The Commons-Daemon JAR file is in the + Class-Path entry of the bootstrap.jar manifest, but if you get a + ClassNotFoundException or a NoClassDefFoundError for a Commons-Daemon + class, add the Commons-Daemon JAR to the -cp argument when launching + jsvc.