当前位置: 代码迷 >> Eclipse >> myeclipse的tomcat启动时遇到的异常
  详细解决方案

myeclipse的tomcat启动时遇到的异常

热度:34   发布时间:2016-04-23 12:38:38.0
myeclipse的tomcat启动时遇到的错误
[size=large]
   将项目部署在tomcat上之后,一运行在myeclipse的控制台可能会出现下列错误:
   2009-12-11 20:02:10 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.20.2009-12-11 20:02:11 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2009-12-11 20:02:12 org.apache.coyote.http11.Http11AprProtocol init严重: Error initializing endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??	at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)	at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)	at org.apache.catalina.connector.Connector.initialize(Connector.java:1022)	at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)	at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)	at org.apache.catalina.startup.Catalina.load(Catalina.java:538)	at org.apache.catalina.startup.Catalina.load(Catalina.java:562)	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:597)	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2009-12-11 20:02:12 org.apache.catalina.core.StandardService initialize严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]LifecycleException:  Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??	at org.apache.catalina.connector.Connector.initialize(Connector.java:1024)	at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)	at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:838)	at org.apache.catalina.startup.Catalina.load(Catalina.java:538)	at org.apache.catalina.startup.Catalina.load(Catalina.java:562)	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:597)	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2009-12-11 20:02:12 org.apache.coyote.ajp.AjpAprProtocol init信息: Initializing Coyote AJP/1.3 on ajp-80092009-12-11 20:02:12 org.apache.catalina.startup.Catalina load信息: Initialization processed in 2657 ms2009-12-11 20:02:13 org.apache.catalina.core.StandardService start信息: Starting service Catalina2009-12-11 20:02:13 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.322009-12-11 20:02:13 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor host-manager.xml2009-12-11 20:02:13 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor manager.xml2009-12-11 20:02:13 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory docs2009-12-11 20:02:14 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory examples2009-12-11 20:02:14 org.apache.catalina.core.ApplicationContext log信息: ContextListener: contextInitialized()2009-12-11 20:02:14 org.apache.catalina.core.ApplicationContext log信息: SessionListener: contextInitialized()2009-12-11 20:02:14 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory rentHouse2009-12-11 20:02:15 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2009-12-11 20:02:15 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory Test2009-12-11 20:02:15 org.apache.coyote.http11.Http11AprProtocol start严重: Error starting endpointjava.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??	at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:649)	at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:756)	at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)	at org.apache.catalina.connector.Connector.start(Connector.java:1095)	at org.apache.catalina.core.StandardService.start(StandardService.java:540)	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)	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:597)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2009-12-11 20:02:15 org.apache.catalina.core.StandardService start严重: Failed to start connector [Connector[HTTP/1.1-8080]]LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??	at org.apache.catalina.connector.Connector.start(Connector.java:1102)	at org.apache.catalina.core.StandardService.start(StandardService.java:540)	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)	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:597)	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2009-12-11 20:02:15 org.apache.coyote.ajp.AjpAprProtocol start信息: Starting Coyote AJP/1.3 on ajp-80092009-12-11 20:02:15 org.apache.catalina.startup.Catalina start信息: Server startup in 2891 ms


解决方法:首先,找到tomcat目录下地conf文件下的server.XML文件。然后,打开,找到
   Connector port="8080" protocol="HTTP/1.1"                connectionTimeout="20000"                redirectPort="8443" />

更改一下端口号,将8080改一下就可以了
[/size]
  相关解决方案