tomcat
端口被占用
Address already in use: JVM_Bind:8080
【原创】tomcat 端口被占用 Address already in use: JVM_Bind:8005tomcat端口被占用的情况:
(一)已经启动了tomcat,如果没有关闭再次启动,就会报错
(二)没有tomcat启动,仍然报端口被占用。可能是eclipse中启动了tomcat,eclipse异常终止后,tomcat内核进程还在。以我遇到的情况为例:
在eclipse中启动了tomcat,调试程序。中途eclipse异常崩溃,我就重新打开了eclipse,再启动tomcat时,报错:
严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:297) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138) at org.apache.catalina.connector.Connector.initialize(Connector.java:1016) at org.apache.catalina.core.StandardService.initialize(StandardService.java:580) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) 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.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) 2009-10-28 17:18:55 org.apache.catalina.startup.Catalina load
解决办法:启动任务管理器,结束 javaw.exe进程