tomcat启动错误 似乎是有东西占了8080端口?求助

zellpan 2007-07-17
之前一直好好的 后来我改了下计算机名 就这样了  启动TOMCAT就提示出错 但是LOCALHOST:8080还是能看到TOMCAT的测试页呀

严重: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
        at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:264)
        at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

        at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1238)
        at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:532)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2199)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start: LifecycleException:  Protocol handler initialization failed: jav
a.net.BindException: Address already in use: JVM_Bind:8080
LifecycleException:  Protocol handler initialization failed: java.net.BindExcept
ion: Address already in use: JVM_Bind:8080
        at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.
java:1240)
        at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:532)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2199)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2166
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Javabengou 2007-07-17
估计你用的是myeclipse
一般情况先看下你的tomcat是否关闭,如果没关闭,关闭后在ECLIPSE中启动服务器
如果关闭了,可能是上次的ECLIPSE的服务器没关闭,占用了8080端口
看windows任务管理器(ctrl+alt+del)中的进程是否有两个javax.exe,如果有,关闭占用内存最小的那个.
如果还是出现同样的问题
看是否除TOMCAT的其他服务器开启!
zellpan 2007-07-17
我只好改TOMCAT的端口了     不过还是不知道是啥占了8080端口
rockjava 2007-07-17
笨狗,辛苦你了!
抛出异常的爱 2007-07-18
oracle也会占用8080口的。
nature1 2007-07-25
我碰到过,你会发现在系统进程中已经有了一个tomcat.exe的进程了,关了那个就行了.
leo_soul 2009-12-19
如沙发所说的,有可能你用的myeclipse,它带有tomcat的控制插件,可能你的IDE非法关闭了,可tomcat实际上是没有关掉的,这样你再次启动IDE并且使用它打开tomcat,如此8080肯定是被占用了。可先进入tomcat目录使用shutdown关闭一次。
gohands 2009-12-19
进程里看看哪些可疑的进程在执行!!
命令行执行 netstat 看看端口的使用情况!!
Global site tag (gtag.js) - Google Analytics