在MyEclipse中运行tomcat出现Error initializing endpoint错误

2009-2-13 1:21:23 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:264)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1429)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
2009-2-13 1:21:23 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.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1431)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
2009-2-13 1:21:23 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1062 ms
2009-2-13 1:21:23 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-2-13 1:21:23 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.28
2009-2-13 1:21:23 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2009-2-13 1:21:23 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx )
2009-2-13 1:21:23 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/Catalina/localhost/admin.xml
2009-2-13 1:21:24 org.apache.struts.util.PropertyMessageResources
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2009-2-13 1:21:24 org.apache.struts.util.PropertyMessageResources
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2009-2-13 1:21:24 org.apache.struts.util.PropertyMessageResources
信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/Catalina/localhost/balancer.xml
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/conf/Catalina/localhost/manager.xml
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /jsp-examples from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/jsp-examples
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /Message from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/Message
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path  from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/ROOT
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /s2jsp_XMAL from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/s2jsp_XMAL
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/servlets-examples
2009-2-13 1:21:26 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /store from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/store
2009-2-13 1:21:27 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/tomcat-docs
2009-2-13 1:21:27 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /webdav from URL file:C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/webdav
2009-2-13 1:21:27 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:264)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:281)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2009-2-13 1:21:27 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.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2009-2-13 1:21:27 org.apache.catalina.startup.Catalina start
信息: Server startup in 4219 ms

原因: 8080端口被占用,在dos下运行“netstat   -a ”查看当前端口的使用情况。
解决方法:修改Tomcat的使用端口,具体做法——找到目录.../Tomcat 5.5/conf,在conf目录下有“server.xml”文件,用记事本打开此文件,查找(打开文件后Ctrl+F)文件中的所有“8080”,并改为其他没有被占用的端口值(如:8088、8081等)。
        这个错出了n久都不知道哪里错了,就是在启动TOMCAT的时候,突然发现出现了上面的错误,前段时间还是好好的,但是不知道为什么昨天就变成这样了。在网上搜了一下,说是端口被占用了,找个端口也找了一会,把端口改了就好了。不明白的就是为什么前些天还是好好的,近段时间就突然说端口被占用了呢。也没找到答案解释。
附:什么是tomcat 80端口?
tomcat是一个JAVA虚拟机软件,用于提供WWW服务。www服务的默认端口就是80,所以,tomcat的端口也是80.这个是可以修改的。好处就是,80端口是默认的www服务端口,要是修改成别的,就必须在IP后面加上这个端口才可以访问你的IIS.比如: http://192.168.0.1:8080.

你可能感兴趣的:(在MyEclipse中运行tomcat出现Error initializing endpoint错误)