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

Error while Shutting down Tomcat 4.1

Pooja Dornadula
Greenhorn

Joined: Jul 20, 2006
Posts: 1
Hello All,

I am new to Tomcat server, When i shut down the server iam getting the following error. I would very grateful if any one help me

C:\Program Files\Apache Group\Tomcat 4.1\bin>shutdown
Using CATALINA_BASE: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME: C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME: C:\j2sdk1.4.2_04
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: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.stop(Catalina.java:532)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:156)

Please help me in this issue

Thanks in Advance :-)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect

That usually means nothing is listening at the port used for shutdown commands. Are you sure Tomcat is still running when this command is given?

How is Tomcat being started? As a service or from startup.bat as a user program?
Is this a new Tomcat installation or is there a chance that somebody has fiddled with the port assignments?
Bill
Murad Iqbal
Ranch Hand

Joined: Dec 09, 2003
Posts: 90
Yes, this means the tomcat is not running, or someone may have played with the port number assignments.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while Shutting down Tomcat 4.1