tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Context deletion on redeploy
Date Wed, 12 Sep 2007 10:11:48 GMT
terenyi@freemail.hu 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


Mime
View raw message