Thanks Mark, I'll try it out. Jitendra ----- Original Message ----- From: Mark Thomas Sent: 06/08/10 03:07 PM To: Tomcat Users List Subject: Re: Tomcat deletes default web.xml [Tomcat version 6.0.14]
On 08/06/2010 10:22, Jitendra G wrote: > Hi, > > We are using Tomcat 6.0.14 and we found that sometimes if Tomcat is restarted few number of times it deletes the default web.xml under “../Tomcat/apache-tomcat-6.0.14/conf” directory. Sometimes this issue also occurs if we are hot deploying our WAR. > > I found similar bug Bug 44725 https://issues.apache.org/bugzilla/show_bug.cgi?id=44725 -Tomcat delete context.xml and web.xml if re-naming Folders in CONF in Tomcat bug list. > But we are not doing anything like renaming any critical directory when Tomcat is running. > > We are only either doing a hot deployment or just restarting Tomcat and still facing this issue. > > We are defining contexts explicitly and Tomcat best practices recommend that one should probably turn off automatic application deployment in such cases. > Still Tomcat should not delete default web.xml, the best practices say nothing about problems to default web.xml it only states about problem to context.x ml. > > Can you please help let us know what might be the possible cause in this issue? Tomcat won't delete the default files under conf (it wasn't doing that in bug 44725 either). This looks like soemthing the app is doing or a result of configuration (odd docBase or appBase etc). Make the file read only and see if an error is triggered. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org