I am using Tomcat 5.5.15 w/ jdk1.5.0_06 In my webapp, I have created a context file in ${app.name}/META-INF/context.xml.
If Tomcat is running and I drop a new war file in the webapps dir, Tomcat reads ${app.name}/META-INF/context.xml and creates a new ${catalina.home}/conf/Catlina/${host.name}/${app.name}.xml This seems like the correct way to do things (not a workaround), because your context is defined and deployed with your webapp. >From the Tomcat documentation >(http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html): "A Context is what Tomcat calls a web application." You could also define your context in server.xml, but this is discouraged in the Tomcat docs. Jim Freeby -----Original Message----- From: Aust, Christian [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 11:51 PM To: Kevin Klinemeier Cc: users@tomcat.apache.org Subject: RE: Redeploying war file kills context xml Hi Kevin, including a context.xml file in META-INF could cure the "disappearing context file" issue, although it would rather be some kind of workaround: The file would still be deleted but eventually restored. Any idea how I could configure tomcat 5.5 to stop from deleting that file? The other issue remaining is Tomcat trying to deploy an unfinished war file. Kind regards, - Christian > -----Original Message----- > From: Kevin Klinemeier [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 9:44 PM > To: Tomcat Users List > Subject: Re: Redeploying war file kills context xml > > > Would including the myapp.xml in your META-INF/ be an option? > I read here > that that should work: > > http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#A% > 20word%20on%20Contexts > > -Kevin ________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. ________________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:44210218258429275232700! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]