tomcat6 停止失败
环境:linux + netBeans + jdk6 + tomcat6
情况:启动时正常, 但停止服务时出错。
端口:服务端口8084 关闭端口8025
控制台出错信息:
2009-7-23 13:53:49 org.apache.catalina.connector.Connector pause
严重: 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:209)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:486)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283)
at org.apache.jk.server.JkMain.pause(JkMain.java:681)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1073)
at org.apache.catalina.core.StandardService.stop(StandardService.java:563)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
at org.apache.catalina.startup.Catalina.start(Catalina.java:603)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-7-23 13:53:50 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2009-7-23 13:53:50 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8084
问题:如何修改使停止时正常? 以及出错原因补充:不要kill等, 我想正常停止
------解决方案--------------------使用连接池去控制,到一定的时间自动重启服务器..
------解决方案--------------------去任务管理里进程里边吧多余的javaw.exe进程停止
------解决方案--------------------服务端口8084 关闭端口8025 :你关闭的端口可能不是启动时的端口,你需要对比一下启动的文件和关闭服务器的脚本文件,看端口是否一致
------解决方案--------------------应该考虑一下版本的问题,如果可能的话,降一下版本,我之前这么处理过