Hi Mark, I presume you are the same Mark that has committed the fixes made in the changelog?
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. Rob > -----Original Message----- > From: Mark Thomas [mailto:[email protected]] > 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 [mailto:[email protected]] > > Subject: Single webapp multiple contexts > > > > I am trying to create multiple 'dynamic' contexts using just a single > > 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 is > > 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 instance > 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 problems. > 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 WAR, > place it somewhere outside the appBase and create multiple references to > it in CATALINA_BASE/conf/<enginename>/<hostname> > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
