thanks for your answers. it's simple :
On the same physical host (server) we need to run two tomcat instance : - one for the production - the other for trainnning and testing AND we already have a script doing the deployement with ant , and this script is managing just one instance , in one webapps location the business wants to separate this 3 (or 4 or 5 ) tomcat instance in order to have one JVM per application (out of memory ...rgggggg) SO 1 - add instance management + various TCP/IP port (8080, 8081,8082 etc ....) to our script ? and so multiplicate webapps folder ..... 2 - use $CATALINA_HOME/conf/Catalina/localhost/appXX.xml pointing to one location for ALL our application (in fact having an absolute path to his context Ex. /var/tomcat/contexts/<appXX>) BUT having server.xml "docBase" pointing to his own webapps (only with ROOT context, EX. /opt/jakartaXXXX/webapps) ? and using ip alias in order to have "virtual host" .... so keeping our script as now. 3 - .... again , thankx for your precious advices 2009/8/27 Filip Hanik - Dev Lists <devli...@hanik.com> > On 08/27/2009 04:33 AM, Mark Thomas wrote: > >> coucou78 coucou78 wrote: >> >> >>> hello, >>> >>> Here we need to have two instances of Tomcat 5.0.30 running at the same >>> time >>> (tomcat1 , tomcat2) , for sure on differents ports, >>> BUT those instances must have the same webapps folder. >>> >>> ../webapps : app1 >>> app2 >>> app3 >>> app4 >>> >>> tomcat1 should host app1 and 2 >>> and tomcat 2 should host app3 and app4 >>> >>> >> >> It is doable, but only if: >> - you set deployOnStartup and autoDeploy to false >> - you explicitly define each webapp with a Context element in server.xml >> >> > or you can specify a context XML file for each webapp, so you can still do > auto deployment > > Filip > > Mark >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >