StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind java.ne

我在eclipse里新建了一个project,通过run server启动服务器,可是显示了:
信息: Server startup in 3969 ms
StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(Unknown Source)
 at java.net.ServerSocket.bind(Unknown Source)
 at java.net.ServerSocket.(Unknown Source)
 at org.apache.catalina.core.StandardServer.await(StandardServer.java:496)
 at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2010-6-2 10:54:17 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-80
2010-6-2 10:54:17 org.apache.coyote.tomcat5.CoyoteConnector pause
严重: Protocol handler pause failed
java.lang.NullPointerException
 at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
 at org.apache.catalina.core.StandardService.stop(StandardService.java:521)
 at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
 at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:648)
2010-6-2 10:54:17 org.logicalcobwebs.proxool.ConnectionPool shutdown
信息: Shutting down 'mingri' pool immediately [Shutdown Hook]


可能的原因有两个:

1. StandardServer.await: create[8005]: java.net.BindException: Address already in use
端口8005被其他软件占用或你的服务器还没有真正的停止
(到进程管理处,关闭tomcat进程)。
------------------
2.  被其他软件占用:
修改tomcat服务器路径下conf目录中的servier.xml
把8005端口改为你还没有使用的端口。如8088

我的是这样解决的:

   将TomCat服务器关闭,然后在重新启动即可。

 

你可能感兴趣的:(TomCat服务器)