tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Gregory" <>
Subject RE: Single webapp multiple contexts
Date Tue, 09 Nov 2010 17:30:18 GMT
Hi Mark, 

I presume you are the same Mark that has committed the fixes made in the

I have tried what you suggest but the result is that each context
defined in CATALINA_BASE/conf/<enginename>/<hostname> get
deployed/expanded into webapps which results in much more disk space
usage. Is there any way to achieve the same result as was previously
possible within Tomcat 5.5.9 where I could have a context declared
within CATALINA_BASE/conf/<enginename>/<hostname> but have that
point/map to an already deployed webapp without it deploying another
copy of the codebase or seeing the warning that is now output from
Tomcat 6. Also using a .war file is a real pain for me because of how we
deploy the different parts of our application.

Many Thanks for your time.

> -----Original Message-----
> From: Mark Thomas []
> Sent: 09 November 2010 17:22
> To: Tomcat Users List
> Subject: Re: Single webapp multiple contexts
> On 09/11/2010 17:18, Caldarale, Charles R wrote:
> > From: Rob Gregory []
> > Subject: Single webapp multiple contexts
> >
> > I am trying to create multiple 'dynamic' contexts using just a
> > code base. For example we currently deploy a webapps within a
context of
> > let's say 'A'. This listens quite happily for requests coming in the
> > form of http://localhost/A/index.htm. What I need to be able to do
> > have this same code base also listen for requests in the form of
> > http://localhost/B/index.htm.
> >
> > You don't say if you want a single webapp instance, or a separate
> for each URI path.  Assuming the latter, the only safe way to do it is
to have
> separate .war files or directories; anything else will cause timing
> Just copy the .war file (or directory) as needed to the properly named
> location, and get rid of the <Context> elements from server.xml
(almost always
> a bad place for them).
> Although if you want a single WAR but multiple deployments of that
> place it somewhere outside the appBase and create multiple references
> it in CATALINA_BASE/conf/<enginename>/<hostname>
> Mark
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message