When using Tomcat 5.5 for either development or production it is sometimes useful to have multiple instances of Tomcat running at the same time.
The instructions below allow you to set up the minimum tomcat configuration to run multiple Tomcat instances.
- Install a Tomcat 5.5 distribution. The
CATALINA_HOMEenvironment variable will point to this location. - Create a directory that will be your Catalina base, identified by the environment variable
CATALINA_BASE - Within this directory create the following directories
- logs
- conf
- webapps
- From your base Tomcat 5.5 distribution copy the following files from
$CATALINA_HOME/confto the conf directory that you have just created:- catalina.properties
- context.xml
- server.xml
- tomcat-users.xml
- web.xml
With this structure one can now run Tomcat. Open a terminal, ensure that the
environment variable CATALINA_HOME is set to point at the directory created in (1) above, set the
environment variable CATALINA_BASE to point at the directory created
in (2) above.