1. Error description
2011-7-20 11:05:18 Org.apache.catalina.core.StandardServer await
Severity: 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.ServerSocket.bind (serversocket.java:319)
At Java.net.serversocket.<init> (serversocket.java:185)
At Org.apache.catalina.core.StandardServer.await (standardserver.java:373)
At Org.apache.catalina.startup.Catalina.await (catalina.java:662)
At Org.apache.catalina.startup.Catalina.start (catalina.java:614)
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)
2011-7-20 11:05:18 Org.apache.coyote.http11.Http11Protocol Pause
2. Cause analysis
As you can see from the description above, Port 8005 is occupied.
3. Workaround
Enter the command in cmd:Netstat-ano, look at the occupancy of all ports, find the process PID that occupies Port 8005, and then delete the process in Task Manager and start Tomcat. If you find it inconvenient to use the cmd command, you can use a software called TCPView.
CMD under View port as shown:
(CRTL+SHIFT+ESC) See an interface, click Process, find Javaw.exe, end process TCPView under love look at the port as shown:
4. The probability of an address already in Use:jvm_bind error is usually present I. Is that the current port is already occupied by other programs, so either take the program that occupies this port off, or swap a new port
II. Port number is used, if you have Oracle, it is possible that Oracle uses port 8080, Oracle is installed and if the Oraclehttp service is started, it consumes 8080 ports
III. I think it's likely that you started tomcat a few times, and that's what happens when you repeatedly start Tomcat under Eclipse, and you investigate to see if that's the reason.
Iv.. If it is not the Windows operating system, then port 80 is already occupied. If it is a Windows operating system. Check to see if IIS is installed.
v. Multiple Tomcat has been started. I just started the two tomcat, so I will report such a mistake, normally, multiple boot tomcat or abnormal shutdown myeclipse, but the process of occupying the port is not closed, there will also be such an error. The workaround is to close the javaw.exe process. Follow-up-----
Java Web 8080 port number is occupied problem processing, finally understand the address already in Use:jvm_bind (port conflict)