[EMAIL PROTECTED] wrote:
> Hi,
> 
> Is there a way to prevent Tomcat to delete the webappname.xml from
> conf/Catalina/localhost at every redeployment?
> 
> I have application specific environment settings there, but at redeploy 
> it gets deleted and I lose the settings. I have tried with and 
> without context.xml in META-INF in my war. It gets copied to 
> the conf/Catalina/localhost but contains the default settings.

Put your JNDI settings into WAR in META-INF/context.xml, if the settings
are not discovered during deployment you'll need to check the following:

Does the WAR actually include the directory and file correctly?

Have the Host settings prevented the Context from being deployed correctly?

p


> I could use jndi with putting a resource link into the webapp's
> META-INF/context.xml and defined the setting in GlobalResource. But now I
> have to deploy the same webapp.war more times (with different name and 
> settings) to the same Tomcat.
> 
> I use autodeploy (copy the .war to the webapps).
> 
> Please help!
> 
> Thanks,
> Balázs
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to