tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jenskreidler <>
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

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?

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message