Re: Stopping tomcat error

2002-03-13 Thread rsequeira


Larry answered this question. Check the morning archives.

According to him, you could shutdown like this:
[jakarta@linux lib]$
/var/jakarta/jakarta-tomcat/build/tomcat/bin/shutdown.sh port=8007

RS






Chris Woods <[EMAIL PROTECTED]> on 03/13/2002 01:56:26 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   Tomcat Users List <[EMAIL PROTECTED]>
cc:

Subject:  Stopping tomcat error

I have no problem starting tomcat but when I try to stop tomcat using
shutdown.sh command I get this output:

[jakarta@linux lib]$
/var/jakarta/jakarta-tomcat/build/tomcat/bin/shutdown.sh
Using classpath:
/var/jakarta/jakarta-tomcat/build/tomcat/bin/../lib/tomcat.jar
Using JAVA_HOME: /usr/java/jdk1.3.1_01
Using TOMCAT_HOME: /var/jakarta/jakarta-tomcat/build/tomcat
Stopping Tomcat.
Can't read /var/jakarta/jakarta-tomcat/build/tomcat/conf/ajp12.id
[jakarta@linux lib]$


Thanks.
Chris.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 









--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Stopping Tomcat

2001-02-14 Thread Nortje, Andrew
Title: RE: Stopping Tomcat




Sorry 
for the cryptic message - here are my eventual findings...
The -f works for stop as well. 
The reason it appeared not to work is that starting 2 instances 
of Tomcat does not always work (for some strange reason - that's a whole 'nother 
problem which I still have to figure out). So if the second instance does not 
start properly it cannot be shutdown properly. 
So, if the 2 instances of 
Tomcat boot fine, then the stop -f works perfectly. (ps -ax |grep java reveals 
not running java processes)

  -Original Message-From: Nortje, Andrew 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, February 14, 2001 10:56 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Stopping Tomcat
  Thanks everyone who helped out with this. 
  > -Original Message- > 
  From: Jan Labanowski [mailto:[EMAIL PROTECTED]] > 
  Sent: Tuesday, February 13, 2001 9:28 PM > To: 
  [EMAIL PROTECTED] > Subject: RE: 
  Stopping Tomcat > > 
  > I did not follow this thread from the beginning, 
  but the > first thing I would > try is to see if ajp12 is enabled. Even if you use ajp13 for 
  > communication > with 
  apache you need ajp12  for shutting down the Tomcat. Never remove 
  > ajp12 from server.xml, only add ajp13. > > So, you have to have a 
  > 
   > > 
  className="org.apache.tomcat.service.PoolTcpConnector"> > 
   >    > 
  value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/> 
  > 
   > 
   > in your server.xml. Put 
  something which is not used as port > value (4006 
  in my > case) > 
  > Jan > Jan K. 
  Labanowski    
  |    phone: 614-292-9279,  FAX: > 614-292-7168 > Ohio Supercomputer 
  Center    |    Internet: [EMAIL PROTECTED] 
  > 1224 Kinnear 
  Rd, 
  |    http://www.ccl.net/chemistry.html > Columbus, OH 43212-1163  
  |    http://www.osc.edu/ > 
  > > > > 
  - 
  > To unsubscribe, e-mail: 
  [EMAIL PROTECTED] > For 
  additional commands, email: [EMAIL PROTECTED] 
  > 


RE: Stopping Tomcat

2001-02-14 Thread Nortje, Andrew
Title: RE: Stopping Tomcat





Thanks everyone who helped out with this.


> -Original Message-
> From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 9:28 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Stopping Tomcat
> 
> 
> I did not follow this thread from the beginning, but the 
> first thing I would
> try is to see if ajp12 is enabled. Even if you use ajp13 for 
> communication
> with apache you need ajp12  for shutting down the Tomcat. Never remove
> ajp12 from server.xml, only add ajp13.
> 
> So, you have to have a 
> 
> 
> className="org.apache.tomcat.service.PoolTcpConnector">
> 
>    
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> 
> 
> in your server.xml. Put something which is not used as port 
> value (4006 in my
> case)
> 
> Jan
> Jan K. Labanowski    |    phone: 614-292-9279,  FAX: 
> 614-292-7168
> Ohio Supercomputer Center    |    Internet: [EMAIL PROTECTED] 
> 1224 Kinnear Rd, |    http://www.ccl.net/chemistry.html
> Columbus, OH 43212-1163  |    http://www.osc.edu/
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





RE: Stopping Tomcat

2001-02-13 Thread Jan Labanowski

I did not follow this thread from the beginning, but the first thing I would
try is to see if ajp12 is enabled. Even if you use ajp13 for communication
with apache you need ajp12  for shutting down the Tomcat. Never remove
ajp12 from server.xml, only add ajp13.

So, you have to have a 





in your server.xml. Put something which is not used as port value (4006 in my
case)

Jan
Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


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:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:00 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:27 PM 
> To: [EMAIL PROTECTED] 
> 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:50 PM 
> To: '[EMAIL PROTECTED]' 
> 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
>

RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


We've been there and done that.  The problem is that using the two
server.xml files, the second server does not shutdown when using the -f
option as it seems it should from the source.

I think we've narrowed the problem down to three options: (see my
other email for details about this)
1.  Bug in Tomcat
2.  Error in server.xml files
3.  Problem with a servlet keeping Tomcat from shutting down

Randy

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Stopping Tomcat


Well, the /org/apache/tomcat/startup/Tomcat.java
(org.apache.tomcat.startup.Tomcat -start | -stop)
should do the job. Just run it from command line. (look in sourses)



Original Message dated 2/13/01, 1:00:24 PM
Author: "Nortje, Andrew" <[EMAIL PROTECTED]>
Re: 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:27 PM 
> To: [EMAIL PROTECTED] 
> 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:50 PM 
> To: '[EMAIL PROTECTED]' 
> 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: '[EMAIL PROTECTED]' 
> > Sub

RE: Stopping Tomcat

2001-02-13 Thread John Golubenko

It's true. The MANUAL is essential. 

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/13/01, 10:46:10 AM, "Randy Layman" <[EMAIL PROTECTED]> wrote 
regarding 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:08 PM
> To: '[EMAIL PROTECTED]'
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat


> READ the documentation
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 10:43 AM
> To: '[EMAIL PROTECTED]'
> 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Stopping Tomcat

2001-02-13 Thread John Golubenko
Title: RE: Stopping Tomcat




Well, the /org/apache/tomcat/startup/Tomcat.java 
(org.apache.tomcat.startup.Tomcat -start | -stop)should do the job.
Just run it from command line. (look in sourses)

Original Message dated 2/13/01, 1:00:24
PM
Author: "Nortje, Andrew"
<[EMAIL PROTECTED]>
Re: 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:27 PM
> To: [EMAIL PROTECTED] >
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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:50 PM
> To: '[EMAIL PROTECTED]' >
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:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 1:46
PM > > To: [EMAIL PROTECTED]
> > 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:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 2:08
PM > > To:
'[EMAIL PROTECTED]' > >
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:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 1:51
PM > > To:
'[EMAIL PROTECTED]' > >
Subject: RE: Stopping Tomcat > > >
> > > READ the documentation >
> -Original Message- > > From:
Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001
10:43 AM > > To:
'[EMAIL PROTECTED]' > >
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 >
> > > >
---

RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:27 PM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:50 PM
> To: '[EMAIL PROTECTED]'
> 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > 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:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: '[EMAIL PROTECTED]' 
> > 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: [EMAIL PROTECTED] 
> > For additional commands, email: [EMAIL PROTECTED] 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


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:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:50 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 1:46 PM 
> To: [EMAIL PROTECTED] 
> 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:08 PM 
> To: '[EMAIL PROTECTED]' 
> 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:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 1:51 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Stopping Tomcat 
> 
> 
> READ the documentation 
> -Original Message- 
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 10:43 AM 
> To: '[EMAIL PROTECTED]' 
> 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: [EMAIL PROTECTED] 
> For additional commands, email: [EMAIL PROTECTED] 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:46 PM
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:08 PM
> To: '[EMAIL PROTECTED]'
> 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:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat
> 
> 
> READ the documentation
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 10:43 AM
> To: '[EMAIL PROTECTED]'
> 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


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:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:08 PM
To: '[EMAIL PROTECTED]'
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:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stopping Tomcat


READ the documentation
-Original Message-
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 10:43 AM
To: '[EMAIL PROTECTED]'
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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: 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:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 1:51 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Stopping Tomcat
  READ 
  the documentation
  
-Original Message-From: Nortje, Andrew 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 10:43 
AMTo: '[EMAIL PROTECTED]'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 


RE: Stopping Tomcat

2001-02-13 Thread Nael Mohammad
Title: Stopping Tomcat



READ 
the documentation

  -Original Message-From: Nortje, Andrew 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 10:43 
  AMTo: '[EMAIL PROTECTED]'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 


Re: stopping tomcat when running it stand along

2000-10-21 Thread Arion Yu


Absolutely correct.
Arion
Renee Petris wrote:
 I
am running tomcat standalone on WinNT 4.0. Following the instructions in
the user's guide, I removed the unneeded the unneeded Ajp12 connector.
Now my server.xml only contains:
   

   
name="handler"
   
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
   

   
name="port"
   
value="8080"/>
   

However,
when I go to shutdown tomcat, I get the following error:Stop
tomcat
java.net.ConnectException: Connection
refused: no further information
   
at java.net.PlainSocketImpl.socketConnect(Native Method)
   
at java.net.PlainSocketImpl.doConnect(Unknown Source)
   
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   
at java.net.PlainSocketImpl.connect(Unknown Source)
   
at java.net.Socket.(Unknown Source)
   
at java.net.Socket.(Unknown Source)
   
at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:208)
   
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:130)
   
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)I
looked at stopTomcat() method on Tomcat.java and this method seems to assume
port 8007 and the Ajp12 connector:   
/** Stop tomcat using the configured cm
 *  The
manager is set up using the same configuration file, so
 *  it
will have the same port as the original instance ( no need
 *  for
a "log" file).
 *  It
uses the Ajp12 connector, which has a built-in "stop" method,
 *  that
will change when we add real callbacks ( it's equivalent
 *  with
the previous RMI method from almost all points of view )
 */
// Find Ajp12 connector
 int portInt=8007;
 Enumeration enum=cm.getConnectors();
 while( enum.hasMoreElements()
) {
 Object con=enum.nextElement();
 if( con instanceof 
TcpEndpointConnector ) {
  TcpEndpointConnector tcpCon=(TcpEndpointConnector)
con;
  if( tcpCon.getTcpConnectionHandler() 
instanceof Ajp12ConnectionHandler ) {
  portInt=tcpCon.getPort();
  }
 }
 } 
// use Ajp12 to stop the server...
 try {
 Socket socket
= new Socket("localhost", portInt);
 OutputStream
os=socket.getOutputStream();
 byte stopMessage[]=new
byte[2];
 stopMessage[0]=(byte)254;
 stopMessage[1]=(byte)15;
 os.write(
stopMessage );
 socket.close();
 } catch(Exception ex ) {
 ex.printStackTrace();
 }Does
this mean that I have to keep the Ajp12 connector in the server.xml file
to properly shutdown tomcat?
Renée Petris
Overseer of the Execution
Loudeye
Technologies
[EMAIL PROTECTED]
414 Olive Way, Suite 300
Seattle, WA 98101
206-832-4500 phone
206-832-4475 fax 

--
[This email and any files transmitted with it are confidential and
may contain information that is legally privileged. They are intended solely
for the addressee(s). Access to this email by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify the
sender by email immediately; you should not copy or use it for any purpose,
nor disclose its contents to any other person. Thank you.]