tomcat org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:80]

10-May-2019 01:17:25.407 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
10-May-2019 01:17:25.407 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
10-May-2019 01:17:25.407 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 59331 ms
10-May-2019 01:17:25.407 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:80]: 
 java.net.BindException: Address already in use: JVM_Bind
    at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
    at java.net.ServerSocket.bind(ServerSocket.java:375)
    at java.net.ServerSocket.(ServerSocket.java:237)
    at org.apache.catalina.core.StandardServer.await(StandardServer.java:440)
    at org.apache.catalina.startup.Catalina.await(Catalina.java:769)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:715)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)

很简单,端口被占用。改一下(没错,windows服务器)

netstat -ano
netstat -aon|findstr "8005"
tasklist|findstr "5516"

问题是另一个项目tomcat的httpserverport:8005;与本tomcat的serverport :8005 shutdown相重复,在关闭时会导致问题。因此修改此tomcat 的shutdown port;为8006

你可能感兴趣的:(tomcat org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:80])