You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by yeshvanthni m <ye...@gmail.com> on 2007/04/17 11:30:53 UTC

Unable to Stop Tomcat

Tomcat is configured as a windows service.When I try to stop service,
I am unable to stop Tomcat .I get the following stack trace.
I tried netstat -a and tomcat port is not listed there but still I am unable
to start the service.I am not able to telnet to that port

Apr 17, 2007 12:49:30 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused: connect
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:519)
 at java.net.Socket.connect(Socket.java:469)
 at java.net.Socket.<init>(Socket.java:366)
 at java.net.Socket.<init>(Socket.java:179)
 at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)




Environment:
jdk1.5.06
Tomcat 5.5.20

Re: Unable to Stop Tomcat

Posted by David Delbecq <de...@oma.be>.
En l'instant précis du 17/04/07 11:30, yeshvanthni m s'exprimait en ces
termes:
> Tomcat is configured as a windows service.When I try to stop service,
> I am unable to stop Tomcat .I get the following stack trace.
Means there is not tomcat listening to the management port. This can be
because running tomcat is not configured to listen to that port or
simply because tomcat is just not running.
> I tried netstat -a and tomcat port is not listed there but still I am
> unable
Then i guess tomcat is not running
> to start the service.I am not able to telnet to that port
>
All elements tend to mean there is no tomcat running on your system, so
obviously it won't stop. If you can't start tomcat, give us the error at
startup (see catalina.out file)

> Apr 17, 2007 12:49:30 PM org.apache.catalina.startup.Catalina stopServer
> SEVERE: Catalina.stop:
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:519)
> at java.net.Socket.connect(Socket.java:469)
> at java.net.Socket.<init>(Socket.java:366)
> at java.net.Socket.<init>(Socket.java:179)
> at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)
>
>
>
>
> Environment:
> jdk1.5.06
> Tomcat 5.5.20
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to Stop Tomcat

Posted by Tomi N/A <he...@gmail.com>.
2007/4/17, Martin Gainty <mg...@hotmail.com>:
> Tomi-
>
> what happens when you change folder to %CATALINA_HOME\bin
> java -jar bootstrap.jar stop
>
> !--now to verify tomcat has been stopped try
> ps -ef | grep "omcat"

I'm sorry to have confused you Martin, but apparently you mistook my
would-be humoristic tomcat marketing pitch for an objection to
tomcat's functionality. For the record, I haven't had problems
stopping tomcat. Every once in a while it might object to beeing
started, but that's about it.

Cheers,
t.n.a.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to Stop Tomcat

Posted by Martin Gainty <mg...@hotmail.com>.
Tomi-

what happens when you change folder to %CATALINA_HOME\bin 
java -jar bootstrap.jar stop

!--now to verify tomcat has been stopped try
ps -ef | grep "omcat"

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Tomi N/A" <he...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, April 17, 2007 11:02 AM
Subject: Re: Unable to Stop Tomcat


> Tomcat is UNSTOPPABLE!
> 
> I-I-I'm sorry, I couldn't help myself... :)
> 
> Sorry for the distraction,
> t.n.a.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to Stop Tomcat

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
Ha ha... and all kidding aside, its a wonderful product, (technology).
Mailing list is always full of "issues", but if there was a way to measure 
red hot products, tomcat would be (is) right up there.
Guys are doing an A1 job on tomcat.

I wanted to say.... its unstoppable... and your problem is???  ;)

ok ok Tomi & I will go join a fan club...

----- Original Message ----- 
From: "Tomi N/A" <he...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Tuesday, April 17, 2007 5:02 PM
Subject: Re: Unable to Stop Tomcat


> Tomcat is UNSTOPPABLE!
>
> I-I-I'm sorry, I couldn't help myself... :)
>
> Sorry for the distraction,
> t.n.a.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to Stop Tomcat

Posted by Tomi N/A <he...@gmail.com>.
Tomcat is UNSTOPPABLE!

I-I-I'm sorry, I couldn't help myself... :)

Sorry for the distraction,
t.n.a.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unable to Stop Tomcat

Posted by Johnny Kewl <jo...@kewlstuff.co.za>.
Maybe this helps.... I had something similar and after much fiddling it went 
away, but I dont know why.
If you installed something.... did you add any libraries to Tomcat?

In my case it was a log library (forget the name) that seemed to completely 
screw tomcat up.
Possibly because classloader was seeing same thing twice... or picking up on 
the wrong thing?







----- Original Message ----- 
From: "yeshvanthni m" <ye...@gmail.com>
To: <us...@tomcat.apache.org>
Sent: Tuesday, April 17, 2007 11:30 AM
Subject: Unable to Stop Tomcat


> Tomcat is configured as a windows service.When I try to stop service,
> I am unable to stop Tomcat .I get the following stack trace.
> I tried netstat -a and tomcat port is not listed there but still I am 
> unable
> to start the service.I am not able to telnet to that port
>
> Apr 17, 2007 12:49:30 PM org.apache.catalina.startup.Catalina stopServer
> SEVERE: Catalina.stop:
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:519)
> at java.net.Socket.connect(Socket.java:469)
> at java.net.Socket.<init>(Socket.java:366)
> at java.net.Socket.<init>(Socket.java:179)
> at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:394)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:320)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:411)
>
>
>
>
> Environment:
> jdk1.5.06
> Tomcat 5.5.20
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org