Re: Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.

2010-12-04 Thread Bill Wang
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  wrote:

> On 12/3/10 5:23 AM, Konstantin Kolinko wrote:
> > 2010/12/3 Bill Wang :
> >> 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
>


Re: Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.

2010-12-03 Thread Pid
On 12/3/10 5:23 AM, Konstantin Kolinko wrote:
> 2010/12/3 Bill Wang :
>> 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


0x62590808.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.

2010-12-02 Thread Konstantin Kolinko
2010/12/3 Bill Wang :
> 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.



Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Accident: After app in one tomcat is deleted, the same app in another tomcat is disappeared.

2010-12-02 Thread Bill Wang
Hi All,

Let me explain the situation.

We got running tomcat with application ABC in
/export/home/xyz/apache-tomcat/webapp/ABC, applicaiton ABC is deployed by
ABC.war, and owner is xyz

We plan to migrate to /opt/tomcat/apache-tomcat/webapp/ABC, so I install the
second tomcat under /opt/tomcat, owner is tcadmin, Idid the adjust such as
java path, catalina home path or others.

account xyz and tcadmin are in different groups.

Today, with the new tomcat running, I accident delete the war file under
/opt/tomcat/apache-tomcat/webapp, then /opt/tomcat/apache-tomcat/webapp/ABC
is disappeared. It is fine, I shouldn't clean war file when the services is
running, then I'd like to copy the folder
/export/home/xyz/apache-tomcat/webapp/ABC
to /opt/tomcat/apache-tomcat/webapp/ABC.

Then the strange thing happened. the old
app: /export/home/xyz/apache-tomcat/webapp/ABC is disappeared.

Is it possible? I have checked history, all commands running in both
account: xyz and tcadmin. There is no any rm command running by xyz. So I
need your help to give me the suggestion.

Regards,
Bill