Is there any way to prevent this error? We use the windows service panel to 
start/stop Tomcat, and if we get this error, the stop command times out, the 
service panel shows an error and assumes the service has stopped, so you can't 
push stop again. 

Thanks,
Jim 

-----Original Message-----
From: david delbecq [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 5:09 PM
To: Tomcat Users List
Subject: Re: Error when shutting down Tomcat

Tomcat use a localhost binded port to receive SHUTDOWN request. However, i 
think it does start listening on that port only after the startup sequence is 
finished. What you see is not a message from the running tomcat, but a message 
from the shutdown script, that says it can't connect to tomcat administrative 
port and thus can't send the shutdown instruction. Your guess is correct, 
tomcat is still running totally unaffected. Just rerun shutdown command when 
tomcat has finished starting up.
Jim Brikman (ybrikman) a écrit :
> If I start Tomcat and let it run for ~30 seconds (ie, let my webapp 
> load completely), I can shut it down without any errors. However, if I 
> start Tomcat and very shortly after try to shut it down again (before 
> my webapp has finished loading), I get the following error in the logs:
>  
> : : Oct 26 2007 14:00:44.124 -0400: %_--: 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:395)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at 
> org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
>
> Nothing else appears in the logs afterwards, so I have no idea what's 
> happening, but I'm pretty sure Tomcat keeps running and my webapp's 
> shutdown code is never called.
>  
> Any ideas?
>  
> Thanks,
> Jim
>
>   


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


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

Reply via email to