Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tomcat shutdown problem

8 views
Skip to first unread message

Dirk Daems

unread,
Oct 4, 2002, 3:35:57 AM10/4/02
to
Hi,

I'm using the Tomcat servlet engine on a Linux machine.
When I try to shut the engine down, I get the following error message. I
searched the internet for a solution, but the only answer I could find is
that tomcat probably isn't running. In my case, tomcat is running!

Kind regards,
Dirk Daems

[root@d5e04559 test]# /usr/local/bin/jakarta-tomcat-4.0.4/bin/shutdown.sh
Using CATALINA_BASE: /usr/local/bin/jakarta-tomcat-4.0.4
Using CATALINA_HOME: /usr/local/bin/jakarta-tomcat-4.0.4
Using CATALINA_TMPDIR: /usr/local/bin/jakarta-tomcat-4.0.4/temp
Using JAVA_HOME: /usr/local/bin/j2sdk1.3.1/
Catalina.stop: java.net.ConnectException: Connection timed out
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)


Dave Miller

unread,
Oct 4, 2002, 10:27:50 AM10/4/02
to
In article <xxbn9.144817$8o4....@afrodite.telenet-ops.be>,
dir...@pandora.be says...
That stack is decidely similar to the one you would get if tomcat were
not running (the script can't connect to the engine).

How did you start tomcat? Does netstat show tomcat on the port(s) you
indicated in server.xml?

Dirk Daems

unread,
Oct 4, 2002, 11:17:47 AM10/4/02
to

"Dave Miller" <unk...@unknown.com> wrote in message
news:MPG.18076f5f...@news.pa.comcast.giganews.com...

Hi,

In my server.xml file, the server shutdown is 8005.
When I do netstat -anp | grep java:

[root@d5e04559 root]# netstat -anp | grep java
tcp 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
2153/java
tcp 0 0 0.0.0.0:8008 0.0.0.0:* LISTEN
2153/java
tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
2153/java
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
2153/java

That seems fine to me ...

Kind regards,
Dirk Daems


Dirk Daems

unread,
Oct 4, 2002, 11:27:48 AM10/4/02
to

"Dirk Daems" <dir...@pandora.be> wrote in message
news:viin9.145385$8o4....@afrodite.telenet-ops.be...

Whoops,
I figured it out. I have an iptables firewall script running ...
Sorry for bothering you with this!

Kind regards,
Dirk Daems


Dave Miller

unread,
Oct 4, 2002, 1:07:03 PM10/4/02
to
In article <Urin9.145396$8o4....@afrodite.telenet-ops.be>,
dir...@pandora.be says...
I wish I could say that I never forgot to add the old localhost -j
ACCEPT.

Regards

DM

0 new messages