This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes connection refused on tomcat web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "connection refused on tomcat web server" Watch "connection refused on tomcat web server" New topic
Author

connection refused on tomcat web server

Joe Nguyen
Ranch Hand

Joined: Apr 20, 2001
Posts: 161
I don't have any problem when starting tomcat web server, but when shutting down, I get the following exception. Could anyone tell me what the problem is?
C:\ServletEngine\jakarta-tomcat-5.0.19\bin>shutdown
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\j2sdk1.4.2_01
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.stopServer(Catalina.java:449)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.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)
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

this is a Tomcat question, so I'll move it to our Apache/Tomcat forum.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I get this exact stacktrace when I try to shut down a Tomcat instance that is already down. Could this be the problem?
Joe Nguyen
Ranch Hand

Joined: Apr 20, 2001
Posts: 161
My servlet engine was up and running by the time I attempted to shut it down.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connection refused on tomcat web server