Hi Konstantin & Pid, Thank you for your reply. My tomcat is apache-tomcat-6.0.14, I start tomcat by bin/startup.sh and stop by bin/shutdown.sh
There is no conf/Catalina/localhost/myapp.xml I find the folder Catalina/localhost under $CATALINE_HOME/work, but I don't find any xml file under it. There are some folders with same app name under webapp. As you recommend, I will check the log file, if I found anything, will let you know. Regards, Bill On Fri, Dec 3, 2010 at 9:38 PM, Pid <p...@pidster.com> wrote: > On 12/3/10 5:23 AM, Konstantin Kolinko wrote: > > 2010/12/3 Bill Wang <bw57...@gmail.com>: > >> Is it possible? > > > > I do not think that it is possible. > > > > Maybe you are running more than 2 tomcat instances (e.g. failed to > > stop some old one properly). > > > > > > Maybe one of them runs with wrong $CATALINA_HOME or wrong > > $CATALINA_BASE. Maybe one of them runs with root (nobody should > > configure their tomcats like that, but mention here for completeness). > > > > What are your exact Tomcat versions? What connectors do you use? How > > do you start them? (jsvc, scripts; are those versions from > > tomcat.apache.org, or repacked ones). > > > > Maybe you had symlinks somewhere. Maybe you deleted the xml files from > > ${catalina.base}/conf/Catalina/localhost. That also will cause > > undeployment. > > > > > > Anyway, when Tomcat autodeploys or undeploys a webapp, it prints > > relevant messages in its logs. > > > What was the docBase in ${catalina.base}/conf/Catalina/localhost/myapp.xml? > > If you had a full path to the file in both, then both servers could have > been loading the same .war, rather than the copy in the other location. > > This might cause both apps to unload, but it wouldn't delete .war files. > > > p >