Dear all, My question focuses on the best way to deploy a Web Application to a running Tomcat instance when specifying the Context Container's configuration in a separate XML file in $CATALINA_BASE/conf/[enginename]/[hostname]/
In an ideal world I would like to be able to keep a *permanent* Application.xml, with environment specific database settings, in $CATALINA_BASE/conf/[enginename]/[hostname]/ and for deployment simply drop my Application.war into my appbase to trigger a redeploy. However, in Tomcat 6, the auto-deployment caused by the new WAR being dropped deletes the existing context XML file. My question is, what is the best way of deploying given that I need to deploy a simultaneous WAR and XML file. Copying the WAR first leaves me without the XML configuration, so do I drop the WAR file and the 'new' (i.e. identical) XML file simultaneously? Drop the XML file afterwards? Do I turn of auto-deploy altogether - and if so what's the most pain free way of doing the deployment to the running Tomcat without auto-deploy? Many thanks in advance for your advice. I case it adds useful information, I have included the background to what I'm hoping to achieve below. Regards, James (I would like my Web Application WAR to be deployable on different Tomcat instances running in different environments, and to have some configuration (namely the JNDI database config) specified by the environment it is deployed on rather than within the application itself. These settings are specified within my <Context> container. As I understand it there are three places where I can configure my context - in the server.xml file, in a separate XML file in $CATALINA_BASE/conf/[enginename]/[hostname]/ and in a context.xml file stored within the WAR itself. The server.xml option is now deprecated, and the within-WAR-file option breaks the goal I have outlined above, so I have gone with the separate XML file.) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org