TOMCAT7 downloaded from the Apache official website, the following exception is thrown when booting in MyEclipse:
Severity: 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)
Search for reasons and workarounds:
Determine that port 8080 is not occupied. DOS command Netstat-an
In C:\Windows\System32\drivers\etc\hosts, there are the following:
127.0.0.1 localhost
192.168.1.106 localhost
Where 192.168.1.106 is not present on the local IP, delete this IP entry, then start OK again!
In the server domain, it is common to configure multiple IP addresses on a single computer. When Tomcat is started,
All IP addresses are obtained according to the configuration, and are bound one by one, when it is found that the IP address that needs to be bound does not exist.
Triggers the above exception, causing it to fail to start normally.
Tomcat Startup exception Java.net.BindException:Cannot assign requested Address:jvm_bind