Although the following is for unix and tomcat standalone, this 
should give you the right direction. We have a structure like 
this:

/www/online/<site>
  /log
    dirctory for the log file
  /conf
    web.xml
    server.xml
      and other files that contain the site specific setup for tomcat
      (tailored versions of the files that are provided by 
       tomcat)
      make shure that the combination of IP and port are unique for
      each instance of tomcat. 
    ...
  /work
    Directory where tomcat stores the genared files and classes
  /webapps
     Directories for the contexts
  /bin
    start.sh
      Script that calls the tomcat that we want to use for 
      this site with the environment for this site:

      JAVA_HOME=/usr/local/java/jdk/sun1.3.1
      CATALINA_HOME=/usr/local/java/tomcat-4.0.3
      CATALINA_BASE=/www/online/<site>


      export JAVA_HOME CATALINA_HOME CATALINA_BASE
      ${CATALINA_HOME}/bin/startup.sh

/usr/local/java/jdk/ibm1.3
/usr/local/java/jdk/sun1.3
/usr/local/java/jdk/sun1.3.1
/usr/local/java/jdk/sun1.4

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.0.4

This way we can have different versions of tomcat at the same time, 
all sites that use the same tomcat version use the same 'executable'
but different processes and individual configuration. If we want to 
use an other version of tomcat we just have to change CATALINA_HOME 
in start.sh (unless the config files are incompatible between these 
versions)

Have a look at RUNNING.txt in the tomcat distribution:

(4) Advanced Configuration - Multiple Tomcat 4 Instances
...

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

> -----Ursprüngliche Nachricht-----
> Von: Frank Diakovasilis [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. August 2002 16:26
> An: '[EMAIL PROTECTED]'
> Betreff: Multiple instances of Tomcat
> 
> I have come across this topic many times in this mailing 
> list, but never paid attention since I never needed to.... 
> but I now need to run multiple instances of Tomcat on a 
> single server (IIS).  The only docs I came across say to 
> set a CATALINA_BASE variable, and that is all they say.
> What steps need to be taken to use multiple instances of 
> Tomcat? What directories need to be duplicated, and what 
> files need to be changed? also I am using the isapi redirect, 
> what has to be done there? 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to