Tomcat error:SEVERE: Protocol handler pause failed

I am running apache-tomcat-5.5.23 using java 1.5.0_11 with modjk and Apache 2.0.52 on Redhat Enterprise Linux 4ES. Tomcat does not seem to shutdown cleanly taking a long time to do so displaying the following message in the logs. Any Ideas how to resolve this problem?

I also have

127.0.0.1localhost localhost.localdomain

in my hosts file amoungst other things.

SEVERE: Protocol handler pause failed

java.net.ConnectException: Connection timed out

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

at java.net.Socket.connect(Socket.java:519)

at java.net.Socket.connect(Socket.java:469)

at java.net.Socket.<init>(Socket.java:366)

at java.net.Socket.<init>(Socket.java:208)

at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:492)

at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289)

at org.apache.jk.server.JkMain.pause(JkMain.java:681)

at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163)

at org.apache.catalina.connector.Connector.pause(Connector.java:1032)

at org.apache.catalina.core.StandardService.stop(StandardService.java:489)

at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)

at org.apache.catalina.startup.Catalina.start(Catalina.java:577)

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:585)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

30-May-2007 02:41:42 org.apache.catalina.core.StandardService stop

INFO: Stopping service Catalina

30-May-2007 02:41:43 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

INFO: Failed shutdown of Apache Portable Runtime

[2419 byte] By [SMPa] at [2007-11-27 5:55:12]
# 1

This problem was resolved by editing the host file (/etc/hosts in the case of my unix box). What had happened in my case was that the box was using the IP address of the external cisco box, when it should have been using its internal IP. So I would recommend looking and checking what your host name resolve to.

Just thought I would add this note as I hate it when people say problem fixed but leave no resolution.

SMPa at 2007-7-12 15:50:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...