当前位置: 技术问答>java相关
第二次运行Tomcat,帮我看看!
来源: 互联网 发布时间:2015-11-15
本文导语: 报错: Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connect...
报错:
Catalina.start: LifecycleException: null.open: java.net.BindException: Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
当我把端口改成8082的时候,报错:
Catalina.start: LifecycleException: Error creating server socket (java.net.Bind
Exception): java.net.BindException: Address already in use: JVM_Bind
LifecycleException: Error creating server socket (java.net.BindException): jav
a.net.BindException: Address already in use: JVM_Bind
at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:491)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
再改成8282也同样的错,这个怎么办阿,我刚刚装的系统。
Catalina.start: LifecycleException: null.open: java.net.BindException: Address
already in use: JVM_Bind:8080
LifecycleException: null.open: java.net.BindException: Address already in use:
JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address already in use: JVM_Bind:8080
at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
当我把端口改成8082的时候,报错:
Catalina.start: LifecycleException: Error creating server socket (java.net.Bind
Exception): java.net.BindException: Address already in use: JVM_Bind
LifecycleException: Error creating server socket (java.net.BindException): jav
a.net.BindException: Address already in use: JVM_Bind
at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:491)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:42)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:28)
再改成8282也同样的错,这个怎么办阿,我刚刚装的系统。
|
1.用windows得task manager看看当前运行的进程,有没有可疑的(可能会占用端口的),比如上次启动的tomcat(java.exe),关掉他们再试试
2.你如何修改tomcat的端口号的?是在server.xml里面吗
2.你如何修改tomcat的端口号的?是在server.xml里面吗
|
在dos下用netstat -a 查看端口使用情况,你的端口肯定被占用了
在server.xml中修改port,把8080改成其他端口
在server.xml中修改port,把8080改成其他端口