Tomcat启动时报StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind

问题描述:

今天一早,所有淡定下来后准备启动本地Tomcat,突然出现一堆错误:


严重: StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:406)
at org.apache.catalina.startup.Catalina.await(Catalina.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:628)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

郁闷。。。回想昨晚我对我电脑干的事,安装了个PHP集成部署软件wampserver,安装完后有个提示是它对C盘systems下写入了某些东西,当时也没有太在意,现在想想就是那时改动了些内容导致Tomcat启动有问题了。

现在提供个网上给出的解决方案:


根据异常信息推测,可能是Tomcat需要绑定的端口或某些资源被其他应用程序占用。

使用DOS命令netstat -an查看被占用的端口,并未发现有任何程序占用Tomcat使用的相关端口(例如8080),并且将Tomcat安装目录下的conf/server.xml文件中的端口改为其他端口,再次运行也无法正常启动。

通过多种测试,可以初步判断应该不是端口占用引起的问题。如果不是端口占用的问题的话,那么就要考虑是否是IP绑定的问题了。

经过检查,在朋友的服务器计算机的C:\Windows\System32\drivers\etc\hosts文件中发现如下部分内容:

59.36.96.201 rhino.acme.com 127.0.0.1 localhost

----------------------------------------------分割--------------------------------------
里面的59.36.96.201 所在行就应该是后面改动加入的,而这ip是不存在的。把该行注释掉(加上#)
原因:
Tomcat在启动时,会根据配置去获取所有的IP地址,并且进行逐个绑定,当发现需要绑定的IP地址不存在时,将会触发上述异常,从而导致无法正常启动。

重新启动Tomcat,ok了。

Tomcat启动时报StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address: JVM_Bind,码迷,mamicode.com

Tomcat启动时报StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address: JVM_Bind

时间: 2024-10-26 19:59:01

Tomcat启动时报StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address: JVM_Bind的相关文章

Tomcat启动报错:严重: StandardServer.await: create[8005] java.net.BindException: Cannot assign requested address

org.apache.catalina.core.StandardServer await        SEVERE: StandardServer.await: create[8005]:        java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address        at java.net.PlainSocketImpl

Tomcat启动异常 java.net.BindException: Cannot assign requested address: JVM_Bind

从Apache官网下载的tomcat7,在MyEclipse中启动时抛出如下异常: 严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Plain

Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind问题

Caused by: java.net.BindException: Cannot assign requested address: JVM_Bind更改这个问题可以从两方面着手:一:查看ip和端口是否正确(大多数都是这个问题引起的)二:查看端口是否被占用了

java.net.BindException: Cannot assign requested address

tomcat启动后报错 2017-6-7 17:23:49 org.apache.catalina.core.StandardServer await 严重: StandardServer.await: create[localhost:8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.Pl

tomcat java.net.BindException: Cannot assign requested address 解决方法

今天线上TOMCAT启动时遇到了下比较麻烦的问题,错误如下: 21-Apr-2016 15:14:19.077 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8015]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.sock

Problem binding to [yarn.com:8031] java.net.BindException: Cannot assign requested address

at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1467)Caused by: java.net.BindException: Problem binding to [yarn.com:8031] java.net.BindException: Cannot assign requested address; For more details see: 是由于虚拟

<<< tomcat启动是报错StandardServer.await: create[8005]

启动tomcat的时候出现异常 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 严重: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind         at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Plai

tomcat错误信息解决方案【严重:StandardServer.await: create[8005]】

错误信息:   严重: StandardServer.await: create[8005]:  java.net.BindException: Address already in use: JVM_Bind         at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerSocke

严重: StandardServer.await: create[8005]:

2011-03-14 17:44:51| 分类: 默认分类 | 标签:tomcat java 端口 await create |字号 订阅org.apache.catalina.core.StandardServer await严重: StandardServer.await: create[8005]: java.net.BindException: Address already in useat java.net.PlainSocketImpl.socketBind(Native Meth