首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

myeclipse里tomcat启动不了啊解决办法

2012-03-06 
myeclipse里tomcat启动不了啊2007-5-2715:01:58org.apache.coyote.http11.Http11Protocolinit严重:Errorin

myeclipse里tomcat启动不了啊
2007-5-27   15:01:58   org.apache.coyote.http11.Http11Protocol   init
严重:   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.Http11Protocol.init(Http11Protocol.java:142)
at   org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at   org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at   org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:509)
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:243)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
2007-5-27   15:01:58   org.apache.catalina.startup.Catalina   load
严重:   Catalina.start
LifecycleException:     Protocol   handler   initialization   failed:   java.net.BindException:   Address   already   in   use:   JVM_Bind:8080
at   org.apache.catalina.connector.Connector.initialize(Connector.java:930)
at   org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at   org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:509)
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:243)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
2007-5-27   15:01:58   org.apache.catalina.startup.Catalina   load
信息:   Initialization   processed   in   812   ms
2007-5-27   15:01:58   org.apache.catalina.core.StandardService   start
信息:   Starting   service   Catalina
2007-5-27   15:01:58   org.apache.catalina.core.StandardEngine   start
信息:   Starting   Servlet   Engine:   Apache   Tomcat/5.5.9
2007-5-27   15:01:58   org.apache.catalina.core.StandardHost   start
信息:   XML   validation   disabled
2007-5-27   15:01:59   org.apache.coyote.http11.Http11Protocol   start
严重:   Error   starting   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.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
at   org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:182)
at   org.apache.catalina.connector.Connector.start(Connector.java:1001)
at   org.apache.catalina.core.StandardService.start(StandardService.java:459)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:683)


at   org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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.start(Bootstrap.java:271)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
2007-5-27   15:01:59   org.apache.catalina.startup.Catalina   start
严重:   Catalina.start:  
LifecycleException:     Protocol   handler   start   failed:   java.net.BindException:   Address   already   in   use:   JVM_Bind:8080
at   org.apache.catalina.connector.Connector.start(Connector.java:1003)
at   org.apache.catalina.core.StandardService.start(StandardService.java:459)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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.start(Bootstrap.java:271)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
2007-5-27   15:01:59   org.apache.catalina.startup.Catalina   start
信息:   Server   startup   in   907   ms
2007-5-27   15:01:59   org.apache.catalina.core.StandardServer   await
严重:   StandardServer.await:   create[8005]:  
java.net.BindException:   Address   already   in   use:   JVM_Bind
at   java.net.PlainSocketImpl.socketBind(Native   Method)
at   java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at   java.net.ServerSocket.bind(ServerSocket.java:319)
at   java.net.ServerSocket. <init> (ServerSocket.java:185)
at   org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at   org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:560)
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.start(Bootstrap.java:271)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
2007-5-27   15:01:59   org.apache.coyote.http11.Http11Protocol   pause
信息:   Pausing   Coyote   HTTP/1.1   on   http-8080
2007-5-27   15:01:59   org.apache.catalina.connector.Connector   pause
严重:   Protocol   handler   pause   failed
java.lang.NullPointerException
at   org.apache.jk.server.JkMain.pause(JkMain.java:675)
at   org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:209)
at   org.apache.catalina.connector.Connector.pause(Connector.java:943)
at   org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at   org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
at   org.apache.catalina.startup.Catalina.stop(Catalina.java:586)


at   org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:629)


[解决办法]
JVM_Bind:8080
端口被占用了,用netstat -an查下另人哪一个程序在用8080端口
[解决办法]
很明显你的应用根本没有布署成功,通常在$TOMCAT_HOME\webapps下放应用的目录,比如myApp,并且要保证在这一级目录下面就要用一个WEB-INF\web.xml(webapps\myApp\WEB-INF\web.xml),否则再深一级目录它是不会认的.就像你这里的/treetest/WebRoot/WEB-INF/index.html,你可以把WebRoot下面的所有东西直接移动到和它在同一级目录再重启一下Tomcat就OK了.
[解决办法]
修改conf文件夹下的server.xml文件里的端口,就好了。

热点排行