单独启动绿色 tomcat 后一直出现这种错误(如下),把网上的方法使用了个遍,这花了我很长时间,还是没有解决。但是在myExlipse 中启动 tomcat 可以,关闭myExclipse 还是不行。重启电脑、myeclipse也是不行。不知为什么?最后不得已把端口改成:8888.,到目前为止该问题没有再出现
网上的方法:
1.端口号被占用,更改tomcat端口号;
2.把Tmcat服务属性更改为手动,重新加载Tomcat;
3.重启Myeclipse;
4.打开任务管理器,找到javaw.exe,把这个进程杀掉;
5.开始-运行-输入cmd-netstat ?-ano-回车-查到8888端口的PID
?通过Ctrl+Alt+Delete快捷键打开Windows任务管理器-查看-选择列-勾选PID(进程标识符)(P)-找到8888端口的PID-结束进程
? 或开始-运行-输入cmd-netstat -ano|find"8888"-tasklist|find "PID "-askkill /pid PID?
2011-12-23 22:51:20org.apache.coyote.http11.Http11AprProtocolinit
严重: Error initializingendpoint
java.lang.Exception: Socket bind failed:[730048]?????????×???(Э?é/???????/???)????í??
?atorg.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)
?atorg.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
?atorg.apache.catalina.connector.Connector.initialize(Connector.java:1014)
?atorg.apache.catalina.core.StandardService.initialize(StandardService.java:680)
?atorg.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
?atorg.apache.catalina.startup.Catalina.load(Catalina.java:524)
?atorg.apache.catalina.startup.Catalina.load(Catalina.java:548)
?atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
?atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?atjava.lang.reflect.Method.invoke(Method.java:597)
?atorg.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
?atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-12-23 22:51:20org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException:?Protocol handler initializationfailed:java.lang.Exception: Socket bindfailed: [730048]?????????×???(Э?é/???????/???)????í??
?atorg.apache.catalina.connector.Connector.initialize(Connector.java:1016)
?atorg.apache.catalina.core.StandardService.initialize(StandardService.java:680)
?atorg.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
?atorg.apache.catalina.startup.Catalina.load(Catalina.java:524)
?atorg.apache.catalina.startup.Catalina.load(Catalina.java:548)
?atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
?atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?atjava.lang.reflect.Method.invoke(Method.java:597)
?atorg.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
?atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-12-23 22:51:20org.apache.catalina.startup.Catalina load
信息: Initialization processed in 761 ms
2011-12-23 22:51:20org.apache.catalina.core.StandardServicestart
信息: Starting service Catalina
2011-12-23 22:51:20org.apache.catalina.core.StandardEnginestart
信息: Starting Servlet Engine: Apache Tomcat/6.0.29
2011-12-23 22:51:20org.apache.catalina.startup.HostConfigdeployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2011-12-23 22:51:21org.apache.catalina.startup.HostConfigdeployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-12-23 22:51:21org.apache.catalina.startup.HostConfigdeployDirectory
信息: Deploying web application directory docs
2011-12-23 22:51:21org.apache.catalina.startup.HostConfigdeployDirectory
信息: Deploying web application directory examples
2011-12-23 22:51:21org.apache.catalina.core.ApplicationContextlog
信息: ContextListener: contextInitialized()
2011-12-23 22:51:21org.apache.catalina.core.ApplicationContextlog
信息: SessionListener: contextInitialized()
2011-12-23 22:51:21org.apache.catalina.startup.HostConfigdeployDirectory
信息: Deploying web application directory ROOT
2011-12-23 22:51:21 org.apache.catalina.startup.HostConfigdeployDirectory
信息: Deploying web application directory SCM
2011-12-23 22:51:23org.apache.coyote.http11.Http11AprProtocolstart
严重: Error startingendpoint
java.lang.Exception: Socket bind failed:[730048]?????????×???(Э?é/???????/???)????í??
?atorg.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:647)
?atorg.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:754)
?atorg.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
?atorg.apache.catalina.connector.Connector.start(Connector.java:1087)
?atorg.apache.catalina.core.StandardService.start(StandardService.java:534)
?atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)
?atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)
?atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
?atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?atjava.lang.reflect.Method.invoke(Method.java:597)
?atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
?atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-12-23 22:51:23org.apache.catalina.startup.Catalinastart
严重: Catalina.start:
LifecycleException:?service.getName():"Catalina";? Protocolhandler start failed: java.lang.Exception:Socket bindfailed: [730048] ?????????×???(Э?é/???????/???)????í??
?atorg.apache.catalina.connector.Connector.start(Connector.java:1094)
?atorg.apache.catalina.core.StandardService.start(StandardService.java:534)
?atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)
?atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)
?atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
?atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?atjava.lang.reflect.Method.invoke(Method.java:597)
?atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
?atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-12-23 22:51:23org.apache.catalina.startup.Catalinastart
信息: Server startup in 2937 ms
2011-12-23 22:51:23org.apache.catalina.core.StandardServerawait
严重: StandardServer.await: create[8005]:
java.net.BindException: Address already in use:JVM_Bind
?atjava.net.PlainSocketImpl.socketBind(NativeMethod)
?atjava.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
?atjava.net.ServerSocket.bind(ServerSocket.java:319)
?atjava.net.ServerSocket.<init>(ServerSocket.java:185)
?atorg.apache.catalina.core.StandardServer.await(StandardServer.java:373)
?atorg.apache.catalina.startup.Catalina.await(Catalina.java:662)
?atorg.apache.catalina.startup.Catalina.start(Catalina.java:614)
?atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
?atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?atjava.lang.reflect.Method.invoke(Method.java:597)
?atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
?atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2011-12-23 22:51:23org.apache.coyote.http11.Http11AprProtocolpause
信息: Pausing Coyote HTTP/1.1 on http-8080
2011-12-23 22:51:23org.apache.coyote.ajp.AjpAprProtocolpause
信息: Pausing Coyote AJP/1.3 on ajp-8009