tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: Stopping Tomcat
Date Tue, 13 Feb 2001 21:04:29 GMT

	What system are you using?  I'm wondering if your might be using
Kaffe as your JVM or on HP-UX?  I believe that boht of these have problems
with shuting down.

	After looking at the code, it seems that you are right, -f is used
for both.  I am assuming that you have one server.xml file and one
server2.xml file.   Try swapping the files and seeing if you can shutdown
the opposite server.  If so, then there's a bug in the shutdown mechanism
(for some reason its defaulting to use server.xml for stop no matter what
you say).  If not, as in you still shutdown the same server then either
there's a problem with your xml file (not creating a Apj connector perhaps
or its running on the same port as another service and not able to be
created) or one of your servlets is hanging the JVM to prevent shutdown.
How that would happen I'm not really sure, but it sounds possible (maybe
endless loops, or somehow accessing the java.awt.Toolkit to start the AWT
thread??)

	Randy

-----Original Message-----
From: Nortje, Andrew [mailto:anortje@ccsc.com]
Sent: Tuesday, February 13, 2001 4:00 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: Stopping Tomcat


Thanks Randy 
I dug through the code and it looks like Tomcat uses -f for starting AND
stopping. I added the -f for stopping, still no joy.
O well there is always kill. 
> -----Original Message----- 
> From: Randy Layman [mailto:randy.layman@aswethink.com] 
> Sent: Tuesday, February 13, 2001 2:27 PM 
> To: tomcat-user@jakarta.apache.org 
> Subject: RE: Stopping Tomcat 
> 
> 
> 
>       Probably so.  Looking at the batch file on NT (which 
> should be very 
> similar to the sh on UNIX) both start and stop are handled by the same 
> class.  I would guess that it processes the arguments the 
> same.  If not, I 
> would suggest looking at the source for 
> org.apache.tomcat.startup.Tomcat 
> (method main) to see where it gets its configuration if its 
> passed a -stop 
> as its first argument - that will tell you how to send it a 
> configuration to 
> make the second one stop. 
> 
>       If that doesn't seem to be what you want, you could 
> create a shell 
> script/batch file that moves the server.xml file around so 
> that one stop 
> uses one server.xml and one uses the other.  (Something like 
> cp server1.xml 
> server.xml, stop tomcat, cp server2.xml server.xml, stop tomcat) 
> 
>       Randy 
> 
> -----Original Message----- 
> From: Nortje, Andrew [mailto:anortje@ccsc.com] 
> Sent: Tuesday, February 13, 2001 2:50 PM 
> To: 'tomcat-user@jakarta.apache.org' 
> Subject: RE: Stopping Tomcat 
> 
> 
> Thanks Randy 
> I understand, I don't mind people telling me to read the 
> manual, a little 
> help on which would be great, I have done plenty searching, 
> else I wouldn't 
> have tried the list... let me not dwell on that. 
> OK your are correct I have two server.xml's. I start with -f 
> server1.xml and 
> -f server2.xml - that much is in the manual. 
> I can't find anything in the manual regarding shutdown. Can I 
> use -f for 
> shutdown as well? 
> > -----Original Message----- 
> > From: Randy Layman [mailto:randy.layman@aswethink.com] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: tomcat-user@jakarta.apache.org 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > 
> >       The problem probably stems from the fact that you have 
> > two different 
> > server.xml files to start Tomcat with, but you are only 
> > calling one of them 
> > to stop it. 
> > 
> >       By the way, if you're on this list for very long, you 
> > will discover 
> > that probably 90% of people's problems are due to a lack of 
> > reading the 
> > manuals.  The regulars get pretty tired of answering the same 
> > questions over 
> > and over again. 
> > 
> >       Randy 
> > 
> > -----Original Message----- 
> > From: Nortje, Andrew [mailto:anortje@ccsc.com] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: 'tomcat-user@jakarta.apache.org' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > Hell now this is a good start to the mailing list!!! :-( 
> >  
> > So allow me...   :-) 
> >  
> > Have you read the the documentation? Yes I have. 
> > Which docs? 
> > - The user guide that comes with Tomcat 
> > - the FAQ's on the Tomcat web site 
> >  
> > So... which docs should I read? 
> > -----Original Message----- 
> > From: Nael Mohammad [mailto:nmohammad@neomar.com] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: 'tomcat-user@jakarta.apache.org' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -----Original Message----- 
> > From: Nortje, Andrew [mailto:anortje@ccsc.com] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: 'tomcat-user@jakarta.apache.org' 
> > Subject: Stopping Tomcat 
> > 
> > 
> > Folks 
> > I'm have new to Tomcat so bear with me please. 
> > I have set up Apache and Tomcat to use 2 virtual server and 
> to use two 
> > instance of Tomcat running on two different port. 
> > Questions: 
> > 1. How do I shutdown both instances of tomcat, the regular 
> > shutdown only 
> > shuts down the one 
> > 2. Sometimes the second instance of Tomcat does not boot 
> > properly and does 
> > not work (I know this is not a lot to work on but maybe 
> > someone has come 
> > across this before.) 
> > Thanks in advance 
> > Andrew 
> > 
> > 
> --------------------------------------------------------------------- 
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
> > For additional commands, email: tomcat-user-help@jakarta.apache.org 
> > 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
> For additional commands, email: tomcat-user-help@jakarta.apache.org 
> 

Mime
View raw message