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(PlainSocketImpl.java:359)
  at java.net.ServerSocket.bind(ServerSocket.java:319)
  at java.net.ServerSocket.<init>(ServerSocket.java:185)
  at org.apache.catalina.core.StandardServer.await(StandardServer.java:444)
  at org.apache.catalina.startup.Catalina.await(Catalina.java:781)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:727)
  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:294)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)

搜索原因和解决方法:

  确定8080端口未被占用。DOS命令netstat -an

  在C:\Windows\System32\drivers\etc\hosts中有如下内容:

    127.0.0.1       localhost

    192.168.1.106    localhost

  其中192.168.1.106是不存在本地的ip,删除此ip项后,再启动OK了!

  在服务器领域,一台计算机配置多个IP地址是常见的。tomcat在启动时,

会根据配置去获取所有的IP地址,并逐个绑定,当发现需要绑定的IP地址不存在时,

会触发上述异常,导致无法正常启动。

时间: 2024-11-05 19:00:59

Tomcat启动异常 java.net.BindException: Cannot assign requested address: JVM_Bind的相关文章

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.

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

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

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 解决方法

今天线上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

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

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: 是由于虚拟

在linux上用jmeter压测时出现很多异常java.net.NoRouteToHostException: Cannot assign requested address.

今天压力测试时, 刚开始出现了很多异常, 都是 java.net.NoRouteToHostException: Cannot assign requested address. 经网上查资料, 是由于linux分配的客户端连接端口用尽, 无法建立socket连接所致,虽然socket正常关闭,但是端口不是立即释放, 而是处于TIME_WAIT状态, 默认等待60s后才释放. 查看linux支持的客户端连接端口范围, 也就是28232个端口: cat /proc/sys/net/ipv4/ip_

记问题解决:Cannot assign requested address:jvm_bind

tomcat启动报错:Cannot assign requested address:jvm_bind 经查端口并未被占用,发现最后原因是hosts文件改过,加了一行<ip> localhost,导致启动时绑定不存在的ip失败了,把这行去掉就可以了.

解决mac os x下 tomcat启动报 java.net.BindException: Permission denied &lt;null&gt;:80 错误

我在mac os x上启动tomcat的时候,报 java.net.BindException: Permission denied <null>:80,java.net.BindException: Permission denied <null>:443错误,443时因为我要弃用ssl服务. Mac OS X 因为要绑定1024以下的端口需要ROOT权限, 但是如果用root权限启动eclipse或tomcat又会造成, 启动创建的各类文件是root的,普通用户无法删除. 为此