This is probably a simple question to answer, but as I haven't found very much 
material on setting up and running two separate instances of tomcat on one machine, I 
thought I'd put it to the list.  We are running Apache 2.0.48 mod-jk2, and  Tomcat 
5.0.28 on Red Hat 9.
 
We'd like to set up two instances of tomcat 5.0 running simultaneously on one 
computer, so that we have separate environments to work with.  I followed some 
instructions on setting up tomcat 4.0 so it could run two instances simultaneously, 
setting the $CATALINA_BASE variable and creating two startup scripts and splitting up 
the directory tree.  However, when I start up one instance of tomcat and then 
attempted to start the second instance, it would appear to start and then shut down 
silently.  This indicates to me that there is something going on, like tomcat is 
attempting to lock on to a unix socket or port thats already in use by the first 
tomcat instance, or using files that the first tomcat instance is using.  I've gone 
throught the server.xml files and the worker2.properties files to make sure that the 
two tomcat instances are not using the same port to communicate with the apache 
server.  I don't know if I have everything configured correctly however, especially in 
the workers2.properties file yet.
 
I'm wondering if anyone else has succesfully set up two simultaneous instances of 
tomcat 5.0 and if the workers2.properties file would look almost the same as one for 
tomcat 4.  Any help will be apreciated, and I will post my current configuration files 
on request.
 
Patricia

Reply via email to