在MyEclipse中启动Tomcat错误

来源:1-8 MyEclipse开发Java Web程序

自然自清

2014-11-27 09:44

十一月 27, 2014 9:42:14 上午 org.apache.coyote.AbstractProtocol init

严重: Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]

java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??

at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:453)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:646)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

十一月 27, 2014 9:42:14 上午 org.apache.catalina.core.StandardService initInternal

严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]

org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed

at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

... 12 more

Caused by: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??

at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:453)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:646)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

... 13 more

十一月 27, 2014 9:42:14 上午 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-apr-8009"]

十一月 27, 2014 9:42:14 上午 org.apache.coyote.AbstractProtocol init

严重: Failed to initialize end point associated with ProtocolHandler ["ajp-apr-8009"]

java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??

at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:453)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:646)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

十一月 27, 2014 9:42:14 上午 org.apache.catalina.core.StandardService initInternal

严重: Failed to initialize connector [Connector[AJP/1.3-8009]]

org.apache.catalina.LifecycleException: Failed to initialize component [Connector[AJP/1.3-8009]]

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)

at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

at org.apache.catalina.startup.Catalina.load(Catalina.java:638)

at org.apache.catalina.startup.Catalina.load(Catalina.java:663)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)

Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed

at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

... 12 more

Caused by: java.lang.Exception: Socket bind failed: [730048] ?????????×???(Э?é/???????/???)????í??

at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:453)

at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:646)

at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)

at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)

... 13 more

十一月 27, 2014 9:42:14 上午 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 1368 ms

十一月 27, 2014 9:42:14 上午 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

十一月 27, 2014 9:42:14 上午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.57

十一月 27, 2014 9:42:14 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs

十一月 27, 2014 9:42:14 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\docs has finished in 208 ms

十一月 27, 2014 9:42:14 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextInitialized()

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextInitialized()

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1be195f')

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\examples has finished in 500 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\host-manager has finished in 44 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\manager has finished in 66 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\MyfirstWebApp

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\MyfirstWebApp has finished in 104 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\myhome

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\myhome has finished in 36 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ROOT has finished in 27 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.startup.Catalina start

信息: Server startup in 1031 ms

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.StandardServer await

严重: StandardServer.await: create[localhost:8005]: 

java.net.BindException: Address already in use: JVM_Bind

at java.net.DualStackPlainSocketImpl.bind0(Native Method)

at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:96)

at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:374)

at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:175)

at java.net.ServerSocket.bind(ServerSocket.java:376)

at java.net.ServerSocket.<init>(ServerSocket.java:237)

at org.apache.catalina.core.StandardServer.await(StandardServer.java:427)

at org.apache.catalina.startup.Catalina.await(Catalina.java:777)

at org.apache.catalina.startup.Catalina.start(Catalina.java:723)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ["http-apr-8080"]

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ["ajp-apr-8009"]

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.StandardService stopInternal

信息: Stopping service Catalina

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextDestroyed()

十一月 27, 2014 9:42:15 上午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextDestroyed()

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ["http-apr-8080"]

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ["http-apr-8080"]

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ["ajp-apr-8009"]

十一月 27, 2014 9:42:15 上午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ["ajp-apr-8009"]


写回答 关注

3回答

  • Larrimooc
    2015-09-14 11:07:33

    我的也是这个问题,我是干掉javaw.exe进程,重新启动Tomcat,解决了

  • 自然自清
    2014-12-05 16:29:40

    port冲突原因是,tomcat开机自启,当在MyEclipse中再次启动时当然会出现冲突。关掉开机自启就好了!

    若其

    怎么关掉开机自启??

    2016-05-20 22:10:38

    共 1 条回复 >

  • 自然自清
    2014-11-27 09:55:02

    将port改为8088就可以正常启动了,自己解决!

    自然自清 回复熙伊

    我的port冲突原因是,tomcat开机自启,当在MyEclipse中再次启动时当然会出现冲突。关掉开机自启就好了!

    2014-12-05 16:32:26

    共 4 条回复 >

JAVA遇见HTML——JSP篇

Java Web入门级教程JSP,带你轻松的学习JSP基础知识

248279 学习 · 3071 问题

查看课程

相似问题