Red Hat Bugzilla – Bug 859263
JSVC - how to construct JSVC command for Tomcat 6
Last modified: 2012-11-08 17:11:12 EST
Add information about $TITLE
Note that is a Tomcat5 link so you may adjust tomcat5 to tomcat6 and the following:
JAVA_HOME=/home2/java/j2sdk1.4.2_03 (NEED JVM version 1.5 at least).
Added for this bug:
A table with the environment variables for Tomcat 6. Need SME to confirm information is accurate.
12.3. Install Jsvc with Tomcat 6
Add a note that in Tomcat 6 there is a wrapper script like in Tomcat 7. So there we describe the parameter of jsvc so you can write your own script.
Keep the table: but change:
Environment Variable = options
JAVA_HOME = -home
CATALINA_HOME = -Dcatalina.home=
DAEMON_HOME remove the row.
TOMCAT_USER = -user
TMP_DIR = -Djava.io.tmpdir
PID_FILE = -pidfile
CATALINA_BASE = -Dcatalina.base=
CATALINA_OPTS and CLASSPATH are not options but parameters, so remove them for the table.
add the 3 mising options:
-outfile : the file where the stdout of the embedded JVM is redirected (default: stdout).
-errfile: the file where the stderr is redirected (default: stderr).
-stop : tell jsvc to stop cleanly another jsvc running in the system the -pidfile contains the information created by jsvc when starting, this information is used to stop it.
Then add the text:
The parameters after the option are used in by the embedded JVM started by jsvc. You can have there -D options for the JVM like for example -Djava.library.path=$HOME/jboss-ews-2.0/tomcat6/lib/, a -cp for the classpath for example -cp $JAVA_HOME/lib/tools.jar:CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar then the class that will be started for example org.apache.catalina.startup.Bootstrap.
Additionally the /home/tomcat6/tomcat6/jakarta-tomcat-6/build need to be replaced by /opt/jboss-ews-2.0/tomcat6.
BTW: $HOME/jboss-ews-2.0/tomcat6/lib/ is /opt/jboss-ews-2.0/tomcat6 in comment 5.
Updates all the above input. This bug will be set to ON_QA when the changes appear on the stage.
looks OK now.
Bug 859265 - JSVC installation on Tomcat 7 (Refer: JBPAPP-9814)
The bug in comment#10 should now be verified. Assuming this is the case, setting this one to ON_QA for verification accordingly as well.
JBPAPP-9814 is marked as resolved.
-cp $JAVA_HOME/lib/tools.jar:CATALINA_HOME/bin/commons-daemon.jar:$CATALINA_HOME/bin/bootstrap.jar should be:
Thanks, Jean-Frederic. Added missing $ to the command. This bug will be set to ON_QA once the changes appear on the stage.
This bug is set to CLOSED CURRENT RELEASE to indicate that this fix is now released and available at access.redhat.com.