> -----Original Message-----
> From: Jose María Zaragoza [mailto:demablo...@gmail.com]
> Sent: Tuesday, December 17, 2013 4:33 AM
> To: Tomcat Users List
> Subject: Modify content in META-INF/context.xml
> 
> Hello:
> 
> I'm using Apache Tomcat 6.0.24 and I've deployed a web application that
> defines its resources into META-INF/context.xml , especially
> information about connection pool
> 
> Sometimes I''ve to edit that file to change some data , i.e, database's
> JDBC url
> 
> I've seen that restart web application is not enough to apply these
> changes  , so I need to redeploy the web application ( I mean, unpack
> WAR file, modify it , repack it again, copy to deploy folder ...)
> 
> My question:
> 
> Do you know other way to modify META-INF/context.xml and apply the
> changes and don't have to redeploy the WAR file ?
> 
> Restart the web application is not a problem, but restart Tomcat is
> 
> Any ideas ?
> 
> Thanks and regards

I think that at 6.x you need to do one of the following to the context.xml file 
located in the configBase ($CATALINA_BASE/conf/[enginename]/[hostname]/):
1. make the changes to the file there and reload the webapp
2. make the changes in the META_INF file and copy it to the configBase, then 
reload the webapp
3. delete the file from the configBase, then redeploy the webapp.

With 7.x (at least the latest version) you get the copyXML paramter in the 
<Host> element which will give you more control over the process.
Jeff


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

Reply via email to