tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DE VINZELLES, Guillaume \(ext.\)" <>
Subject RE: Tomcat, Apache and mod_jk configuration
Date Thu, 19 Oct 2006 13:53:38 GMT
Michael and Chris, thanks a lot for your valuable help.
I'm going to try this ASAP.
The "multi instance" Tomcat seems really interesting.
Thanks again!


Guillaume de Vinzelles
DSI/PFS Neuf Cegetel
Altran Technologies
01 70 18 21 64
-----Message d'origine-----
De : Christopher Schultz [] 
Envoyé : jeudi 19 octobre 2006 15:39
À : Tomcat Users List
Objet : Re: Tomcat, Apache and mod_jk configuration


> In fact, I've already put the jkMount directive in the VirtualHost 
> conf.


> And I'd like to have my webapp accessible through 
> instead of 

It looks like what to have more than one webapp as the "root webapp".

My suggestion would be to run each webapp in a different instance of
Tomcat. It's much easier than you think is it to do this. I use Tomcat
4.1.x, but I'm sure the same is possible with very few changes on 5.5.x:

1. Create a directory structure for each webapp (outside of Tomcat's
installation directory) like this:


** Make sure to set your port numbers for your shutdown and connector
ports to something unique among your webapps. I usually use 8x85 for the
ajp13 connector port and 8x86 for the shutdown port.

2. Install your webapp to the directory struts-dev-1/webapps/struts-dev-1

3. Configure Tomcat to use "struts-dev-1" as your root webapp (usually
by specifying that the "path" is "" instead of "/struts-dev-1").

4. Start each Tomcat instance like this:

$ export JAVA_HOME=...
$ export CATALINA_HOME=/path/to/full/tomcat/install
$ export CATALINA_BASE=/path/to/struts-dev-1
$ export CATALINA_TMPDIR=/path/th/struts-dev-1/temp
$ /path/to/full/tomcat/install/bin/

This setup allows you to have separate root webapps (or any other kind
of setup). You also have the benefit (I choose to see it as a benefit)
of separate JVMs and Tomcat instances. You can take one down without
bothering the others.

Hope that helps,

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message