| Author |
Another shutting down problem
|
john von
Ranch Hand
Joined: Apr 13, 2004
Posts: 49
|
|
I couldn't shutdown my tomcat. Im using Win 2000. Here's the error: Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.<init>(Socket.java:291) at java.net.Socket.<init>(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
Apparently Tomcat is not listening on the port that your stop batch file is using. 1. How was Tomcat started? 2. Have you changed any configuration parameters in server.xml? 3. Are you sure that Tomcat is really running at all/ Bill
|
 |
john von
Ranch Hand
Joined: Apr 13, 2004
Posts: 49
|
|
Hi. 1. Tomcat was started thru to the service of my NT. So basically, it is started automatically upon boot up. 2. Yup, i changed some configuration on server.xml. Im leaning to blame that i changed the default port of "8080" so i can i ommit writing "localhost:8080" on address bar. Could it be the culprit? 3. Yup, im sure. All my applications are running well and Im using the said server in my development. Thanks in advance.
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
1) so are you stopping the service, or using the Start Menu shortcut? The answer should be: stopping the service. 2) the shutdown script reads the server.xml file, where it will find your changed port. Also, 8080/80 is not the 'shutdown port' either, so this shouldn't matter at all, in terms of shutdown.
|
 |
john von
Ranch Hand
Joined: Apr 13, 2004
Posts: 49
|
|
Thanks Mike! It should be stopped through the service and not on the shutdown under bin folder.
|
 |
 |
|
|
subject: Another shutting down problem
|
|
|