Hi,
I am using tomcat 5.5.12 on linux. We have installed 2 tomcat-instances
- which I thought worked. But now I noticed that those 2 instances are
using the same classes and the same classpath, which they should'nt.
Here is the configuration:
/our-apps/apache-tomcat-5.5.12 for Tomcat 1
/our-apps/tomcat-production for Tomcat 2 with the directories
* conf
* logs
* shared
* temp
* webapps
* work
Tomcat 1 is working normally. But Tomcat 2 is using the same classes and
libraries as Tomcat 1 in a context which is named "kos" respectively.
I think I have messed up with the startup files. So here is the
startup-file for the "production" tomcat. The startup-file for Tomcat 1
is basically the same but with no CATALINA_BASE option.
So do you have any idea what I am doing wrong?
#!/bin/sh
### BEGIN INIT INFO
# Provides: tomcat-production
# Required-Start: $local_fs $remote_fs
# X-UnitedLinux-Should-Start: $named $syslog $time
# Required-Stop: $local_fs $remote_fs
# X-UnitedLinux-Should-Stop: $named $syslog $time
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Tomcat-Production
# Description: Start Tomcat-Production
### END INIT INFO
JRE_HOME=/our-apps/jdk1.5.0_05/jre
export JRE_HOME
CATALINA_OPTS="-Xms256M -Xmx512M"
export CATALINA_OPTS
CATALINA_HOME=/our-apps/apache-tomcat-5.5.12
export CATALINA_HOME
CATALINA_BASE=/our-apps/tomcat-production
export CATALINA_BASE
cd ${CATALINA_HOME}
case "$1" in
start)
echo "Starting Tomcat-Production ${CATALINA_HOME}..."
su tomcat -s /bin/bash -c "${CATALINA_HOME}/bin/startup.sh" >
"$CATALINA_BASE/logs/start.log" 2>&1
;;
restart)
echo "Restarting Tomcat-Production ${CATALINA_HOME}..."
$0 stop
$0 start
;;
stop)
echo "Stopping Tomcat-Production ${CATALINA_HOME}..."
su tomcat -s /bin/bash -c "${CATALINA_HOME}/bin/shutdown.sh" >
"$CATALINA_BASE/logs/stop.log" 2>&1
;;
*)
echo "usage: rctomcat-production [ start | stop | restart ]"
;;
esac
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]