Well, this is what I did to get gatein b2 to work with the jsvc service
First I really do not like relative pathnames. All of the "../temp/" in the configuration files is just a bogus hack. I hope that they will get cleaned up.
I installed the GateIn-3.0.0-Beta02 under /opt and made a sym link to /opt/tomcat
Had to make a sym link /opt/tomcat/temp to /opt/temp (see rant above)
created a tomcat user.
chowned the /opt/GateIn-3.0.0-Beta02 to tomcat
compiled the /opt/tomcat/bin/jsvc.tar.gz source and installed it in /usr/local/bin
Then used this init.d script to start / stop tomcat.
# chkconfig: 345 86 15
# description: Tomcat Server
# Small shell script to show how to start/stop Tomcat using jsvc
# If you want to have Tomcat running on port 80 please modify the server.xml
# <!-- Define a non-SSL HTTP/1.1 Connector on port 80 -->
# <Connector className="org.apache.catalina.connector.http.HttpConnector"
# port="80" minProcessors="5" maxProcessors="75"
# enableLookups="true" redirectPort="8443"
# acceptCount="10" debug="0" connectionTimeout="60000"/>
# Adapt the following lines to your configuration
case "$1" in
# Start Tomcat
-user $TOMCAT_USER \
-home $JAVA_HOME \
-jvm server \
-outfile $CATALINA_BASE/logs/catalina.out \
-errfile '&1' \
-classpath $CLASSPATH \
# To get a verbose JVM
# To get a debug of jsvc.
# Stop Tomcat
if [ -f $PIDFILE ]
echo "No PID, TC not running?"
echo "Usage tomcat.sh start/stop"
Yes the temp location isn't great :)
The good thing is that for the moment it solves the issue that the tmp space is different from JBoss AS, Tomcat and all other application server. Agreed that it has to change.
Your post is good info, it would better belong to our wiki. I just created a landing page, do you want to create a page about this referenced from the landing page or do you want me to ?
I could. What is the landing URL? Do you want me to expand, or fill in the steps (building jsvc, etc)?
Forgot the link:
Just put the info you think are needed for GateIn, the steps you mentionned in this forum seem like a good start, I don't think you need to go as low as how to build jsvc but adding a link to the jsvc project page might help.
Also a line to explain what it does for people who don't know JSVC
Thanks a lot !
Ok, I've added content. Hope it is OK.
Thanks a lot !