日期:2014-05-18  浏览次数:20840 次

tomcat启动出错 请前辈帮忙(在线等)
启动出现下列错误,但是简单的jsp可以正常运行 ,部分就运行不了:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1323)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2269)
at org.apache.catalina.startup.Catalina.start(Catalina.java:458)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
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.main(Bootstrap.java:151)
Catalina.start: LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080
LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1325)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2269)
at org.apache.catalina.startup.Catalina.start(Catalina.java:458)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
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.main(Bootstrap.java:151)
Catalina.stop: LifecycleException: This server has not yet been started
LifecycleException: This server has not yet been started
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2236)
at org.apache.catalina.startup.Catalina.start(Catalina.java:490)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:346)
at org.apache.catalina.startup.Catalina.process(Catalina.java:130)
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.main(Bootstrap.java:151)

------解决方案--------------------
端口冲突,把tomcat的端口号改一下吧,具体位置在%tomcat%/comf/server.xml中,直接搜索port="8080"
然后找到对应的改一下
------解决方案--------------------
楼上正解!~
------解决方案--------------------
同意1楼
------解决方案--------------------
換一個端口試試,主要是那個8080,8009,和8005的,都換一下吧