This problem happens in my working environment very often. I am not sure what causing the tomcat stop improperly and failed to restart.
I try to kill the java process using ProcessExplorer but failed. The process still running no matter how many time I kill it.
If your run netstat in cmd you will see the port 8080 under the states of CLOSE_WAIT. Mean the connection is close from 1 end and the other end is waiting.
I have found 2 solutions
- Restart you machine
- Close the connection
You can restart you machine then the connection will close automatically. Else use 3rd party program to close the connection. I am using CurrPorts, you can download from http://www.nirsoft.net/utils/cports.html .
Just search for java process and right click “Close Selected TCP Connections”.
Hope this will help someone in the future.