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

eclipse中Tomcat启动不了?该如何处理

2011-12-31 
eclipse中Tomcat启动不了?我在Eclipse中启动Tomcat的时候启动不了,报了下面的错误,请帮我看看是什么错误呢

eclipse中Tomcat启动不了?
我在Eclipse中启动Tomcat的时候启动不了,报了下面的错误,请帮我看看是什么错误呢


2007-3-15   0:58:48   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(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:324)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
2007-3-15   0:58:48   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(NativeMethodAccessorImpl.java:39)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at   java.lang.reflect.Method.invoke(Method.java:324)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
2007-3-15   0:58:48   org.apache.catalina.startup.Catalina   load
信息:   Initialization   processed   in   2485   ms
2007-3-15   0:58:49   org.apache.catalina.core.StandardService   start
信息:   Starting   service   Catalina
2007-3-15   0:58:49   org.apache.catalina.core.StandardEngine   start
信息:   Starting   Servlet   Engine:   Apache   Tomcat/5.0.28
2007-3-15   0:58:49   org.apache.catalina.core.StandardHost   start
信息:   XML   validation   disabled
2007-3-15   0:58:49   org.apache.catalina.core.StandardHost   getDeployer
信息:   Create   Host   deployer   for   direct   deployment   (   non-jmx   )  
2007-3-15   0:58:49   org.apache.catalina.core.StandardHostDeployer   install
信息:   Processing   Context   configuration   file   URL   file:G:\Tomcat   5.0\conf\Catalina\localhost\balancer.xml
2007-3-15   0:58:51   org.apache.catalina.core.StandardHostDeployer   install
信息:   Processing   Context   configuration   file   URL   file:G:\Tomcat   5.0\conf\Catalina\localhost\admin.xml


2007-3-15   0:58:52   org.apache.struts.util.PropertyMessageResources   <init>
信息:   Initializing,   config= 'org.apache.struts.util.LocalStrings ',   returnNull=true
2007-3-15   0:58:52   org.apache.struts.util.PropertyMessageResources   <init>
信息:   Initializing,   config= 'org.apache.struts.action.ActionResources ',   returnNull=true
2007-3-15   0:58:54   org.apache.struts.util.PropertyMessageResources   <init>
信息:   Initializing,   config= 'org.apache.webapp.admin.ApplicationResources ',   returnNull=true
2007-3-15   0:58:59   org.apache.catalina.core.StandardHostDeployer   install
信息:   Processing   Context   configuration   file   URL   file:G:\Tomcat   5.0\conf\Catalina\localhost\manager.xml
2007-3-15   0:58:59   org.apache.catalina.core.StandardHostDeployer   install
信息:   Installing   web   application   at   context   path     from   URL   file:G:\Tomcat   5.0\webapps\ROOT
2007-3-15   0:58:59   org.apache.catalina.core.StandardHostDeployer   install
信息:   Installing   web   application   at   context   path   /tomcat-docs   from   URL   file:G:\Tomcat   5.0\webapps\tomcat-docs
2007-3-15   0:59:00   org.apache.catalina.core.StandardHostDeployer   install
信息:   Installing   web   application   at   context   path   /jsp-examples   from   URL   file:G:\Tomcat   5.0\webapps\jsp-examples
2007-3-15   0:59:00   org.apache.catalina.core.StandardHostDeployer   install
信息:   Installing   web   application   at   context   path   /servlets-examples   from   URL   file:G:\Tomcat   5.0\webapps\servlets-examples
2007-3-15   0:59:01   org.apache.catalina.core.StandardHostDeployer   install
信息:   Installing   web   application   at   context   path   /webdav   from   URL   file:G:\Tomcat   5.0\webapps\webdav


[解决办法]
你的 8080 端口 已经在用了,你在 tomcat-> conf -> server.xml 中Connector 里把端口改了就成,要不你把用 到8080端口的 程序停了 .
[解决办法]
不需要改端口,打开任务管理器,把java.exe进程结束掉就可以了(如果没有java.exe 就把javaw进程结束掉),产生这个问题的原因是没有正常关闭服务器。

热点排行