Tino - I'm sorry to answer your question with a different suggestion, but... I have a set-up in which I'm using the same physical copy of a 5.5.15 Tomcat distribution, but I run two instances simultaneously by using command lines with two different settings of CATALINA_BASE. In each case CATALINA_BASE is a directory outside the tree in which the physical copy of Tomcat lives. This works fine - which is not surprising, because as you know that was the idea behind CATALINA_BASE, to allow people to have a single Tomcat installation but multiple runtime instances with completely different configuration.
Something else I'm doing is avoiding environment variables everywhere - I hate them! They make it so difficult to debug problems. Instead, I have replaced them with literal paths, including in Tomcat shell files. (Actually, I have replaced them with properties named like {{runtime.catalina.base}}, and I use Ant to substitute these properties at build time - it works very well.) I hope this is useful. I also hope I don't sound smug - it took me an age to arrive at the idea... Jon -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tino Schöllhorn Sent: 28 January 2006 17:06 To: users@tomcat.apache.org Subject: Multiple Tomcat-Instances problem 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]