Tomcat Start Error: Java.net.BindException:Cannot assign requested Address:jvm_bind
Tomcat cannot assign requested Address:jvm_bind non-port occupancy conflict
Severity: 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:50W) at org.apache.catalina.startup.Catalina.await (Catalina.java:676) at Org.apache.catalina.startup.Catalina.start (Catalina.java:32]) 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)
It may be that Tomcat needs to bind the port or some of the resources are occupied by other applications.
Using the DOS command Netstat-an to view the occupied ports, there are no programs that occupy the relevant ports used by Tomcat (for example, 8080), and the conf/in the Tomcat installation directory The port in the Server.xml file changes to a different port, and running again does not start properly.
Through a variety of tests, you can initially determine that the problem should not be caused by port occupancy. If the problem is not port occupancy, then consider whether it is an IP binding problem.
After checking, the following sections are found in the C:\Windows\System32\drivers\etc\hosts file of the server computer:
127.0.0.1 localhost
169.196.254.14 localhost
169.196.254.14 is a non-existent local IP address, the hosts file in the second line of content 169.196.254.14 localhost removed, start tomcat again, found to run normally!
In the server domain, it is more common to configure multiple IP addresses on a single computer. When Tomcat starts, it gets all the IP addresses according to the configuration and binds them one by one, triggering the above exception when it finds that the IP address that needs to be bound does not exist, causing the failure to start normally.
// all IP addresses for output localhost mappings inetaddress[] ips = inetaddress.getallbyname ("localhost"); if NULL { for (inetaddress ip:ips) { System.out.println (ip.gethostaddress ());} } /* before modifying the Hosts file above, output: * 169.196.254.14* 127.0.0.1* After modifying the file, Output * 127.0.0.1 */
Tomcat Start Error: Java.net.BindException:Cannot assign requested Address:jvm_bind