File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Problem STOPPING tomcat 5.0... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem STOPPING tomcat 5.0..." Watch "Problem STOPPING tomcat 5.0..." New topic
Author

Problem STOPPING tomcat 5.0...

Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
Hi!
I have a problem stopping tomcat on my computer. Whenever I run shutdown.sh from the bin directory, I get the following:
[ivanjouikov@ned bin] $ ./shutdown.sh
Using CATALINA_BASE: /usr/local/jakarta/build
Using CATALINA_HOME: /usr/local/jakarta/build
Using CATALINA_TMPDIR: /usr/local/jakarta/build/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_04
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
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:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:449)
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:324)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:400)
[ivanjouikov@ned bin] $

Btw tomcat IS running while I attempt that. I have no clue what's going on. Please help!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12786
    
    5
What it sounds like is that the shutdown script is not using the right port - I have no idea how this could come about.
Incidently, since this is Tomcat specific, you should have posted in the Tomcat forum.
Ivan Jouikov
Ranch Hand

Joined: Jul 22, 2003
Posts: 269
I scanned thru the forum list and didn't see it... sorry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem STOPPING tomcat 5.0...