日期:2014-05-17  浏览次数:20814 次

tomcat关闭的时候报了这么一个提示,该如何解决?
tomcat关闭的时候报了这么一个提示,该如何解决?

May 11, 2011 22:12:08 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
  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:364)
  at java.net.Socket.connect(Socket.java:507)
  at java.net.Socket.connect(Socket.java:457)
  at java.net.Socket.<init>(Socket.java:365)
  at java.net.Socket.<init>(Socket.java:178)
  at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
  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.stopServer(Bootstrap.java:344)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
Kill failed: $CATALINA_PID not set
 
找不到你的管理脚本所设定的 PID ,关闭失败

------解决方案--------------------
tomcat 进程已经退出了
如果因为某个原因tomcat 已经退出了 你再用 catalina.bat stop
停止tomcat 也会有这个错