tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jenskreidler <jenskreid...@yahoo.de>
Subject Re: Deploying ROOT Context for variable .war filename
Date Mon, 08 Aug 2011 12:11:49 GMT

First of all thanks for the rapid answers and your time!
I think I did not describe the scenario correctly, so I do this now:

Assume you have a tomcat 'multiple-instances' setup like this
/srv/tomcat/instance-1/
/srv/tomcat/instance-2/
...
/srv/tomcat/instance-n/

Every instance dir is a full tomcat "CATALINA_BASE" directory with 
+ instance-i
  |
  +- conf
  +- logs
  +- temp
  +- webapps
  +- work

A continuous integration shell-script copies to any instance (1..n) a built
.war-file whose filename-suffix varies on application, version, timestamp
and build-id. The scripts copies the .war into the instance-i/webapps
directory via cp over ssh in the intranet.

My question is how to mount the .war-file 'dynamically' as the instance's
root context application?

Currently all .war builds have a fixed name, assume myapp-3.2.war, and all
server.xml's in any instance-i/conf do have the section:
<Context path="" docBase="myapp-3.2" />

That way it is guaranteed, that the myapp-3.2.war is started up and mounted
as the tomcat instances' root context.

However, is it possible by a clever configuration, to deploy any
war-filename to any instance-i/webapps directory, so that the war -
regardless of its filename - is mounted at the instance's root context?

jenskreidler
-- 
View this message in context: http://old.nabble.com/Deploying-ROOT-Context-for-variable-.war-filename-tp32216447p32217790.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message