tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Majors, Jeremy" <>
Subject Re: Tomcat 7.0.27 on Mac OSX Lion -- Is it Possible to use Tomcat Parallel Deployment when the Context Name is Different than the WAR Name
Date Mon, 01 Jul 2013 20:50:17 GMT

On 7/1/13 2:27 PM, "Mark Thomas" <> wrote:

>On 01/07/2013 19:30, Majors, Jeremy wrote:
>> The application I am working on currently runs in production under
>> multiple contexts within tomcat and we are doing so by creating
>> separate context.xml files for each where we specify the docbase
>> which points to a single directory and each has a unique path value
>> specified. We are currently evaluating the parallel deployment
>> feature of Tomcat and I'm having trouble finding a way to get that to
>> work with our current setup. I've read the tomcat documentation
>> (
>> and it doesn't appear to support our current setup,
>In what way?

I have 3 separate context files setup within the conf/Catalina/localhost/
folder  (examples provided below).

<Context reloadable="true" crossContext="true" sessionCookiePath="/"

<Context reloadable="true" crossContext="true" sessionCookiePath="/"

<Context reloadable="true" crossContext="true" sessionCookiePath="/"

We are looking for a way to deploy a new version of the application
"myapp" using the parallel deployment approach so that we minimize
downtime.  I have been unable to get tomcat to recognize the new version
when I deploy myapp##001 via the automatic deployment process or when I
add a myapp##001 to the /Users/jeremy/tomcat/manualDeploy/ folder.  I
suspect it is because parallel deployments don't work if you specify the
path attribute of a context configuration.  I've also tried putting myapp
in the appbase folder, but if I do that then Tomcat gives me an error
stating that I cannot specify a docbase within the appease folder (tried
both absolute and relative paths).

>> but I wanted to
>> reach out to the community and ask before we attempt to change how we
>> setup tomcat.
>As long as the WAR is outside the host's appBase you should be fine.
>> Please note, I have been able to get the parallel
>> deployment process to work if we create separate wars for each of our
>> web sites and deploy them individually.  Also, there is logic that
>> understands which "context" the site is running in and loads
>> different configuration files and alters it's behavior based upon the
>> context, so setting up aliases won't work for us (at least not based
>> upon my understanding of how that piece of functionality works).
>> Does anyone know if our current context configuration can work with
>> the parallel deployment process and if so, how would that be
>> accomplished?
>I don't see any reason why it wouldn't work.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message