当前位置: 技术问答>java相关
各路大虾,我的tomcat为什么启动不了?
来源: 互联网 发布时间:2015-06-28
本文导语: 如果要改配置,请尽量详细,谢过,先。 Catalina.start: LifecycleException: Error creating server socket (java.net.Bind Exception): java.net.BindException: Address in use: JVM_Bind LifecycleException: Error creating server socket (java.net.BindExc...
如果要改配置,请尽量详细,谢过,先。
Catalina.start: LifecycleException: Error creating server socket (java.net.Bind
Exception): java.net.BindException: Address in use: JVM_Bind
LifecycleException: Error creating server socket (java.net.BindException): jav
a.net.BindException: Address in use: JVM_Bind:8080
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address in use: JVM_Bind:8080
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:485)
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Catalina.start: LifecycleException: Error creating server socket (java.net.Bind
Exception): java.net.BindException: Address in use: JVM_Bind
LifecycleException: Error creating server socket (java.net.BindException): jav
a.net.BindException: Address in use: JVM_Bind:8080
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
----- Root Cause -----
java.net.BindException: Address in use: JVM_Bind:8080
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Defau
ltServerSocketFactory.java:118)
at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConne
ctor.java:485)
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 java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
|
不要设置TomCat_HOME和那个catalina的环境变量,正确设置你的JAVA_HOME,那就行了。 :)
|
8080端口已经被其他的什么程序用了。TOMCAT 换个端口或者找出占用8080端寇的程序KILL 掉。
|
很明显的一个错误!你的机器的8080端口被占用了,你可以到%TOMCAT_HOME%conf/server.xml修改一下
|
是不是你的Tomcat已经启动了阿,又开第二个。
要不是这样就换个端口。
要不是这样就换个端口。
|
同意楼上的
JVM_Bind
应该是java虚拟机出错!!
JVM_Bind
应该是java虚拟机出错!!
|
java_home
tomcat_home
我就是这样设置的
没改其它任何设置
localhost:8080
显示正常
端口被占?
tomcat_home
我就是这样设置的
没改其它任何设置
localhost:8080
显示正常
端口被占?
|
到CONF/SERVER。XML中把8080 改成其他的端寇号试试,比如18080之类
|
netstat -a
看看端口是否被占用!
看看端口是否被占用!