File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Another shutting down problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Another shutting down problem" Watch "Another shutting down problem" New topic

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: Connection refused: connect Connection refused: connect
at Method)
at org.apache.catalina.startup.Catalina.stop(
at org.apache.catalina.startup.Catalina.execute(
at org.apache.catalina.startup.Catalina.process(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.main(
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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/
john von
Ranch Hand

Joined: Apr 13, 2004
Posts: 49
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.
I agree. Here's the link:
subject: Another shutting down problem
It's not a secret anymore!