I am trying to deploy a JavaEE application, but I get this error:
Starting of Tomcat failed, the server port 8084 is already in use.
The reason is obvious, the solution, not so much.
According to this website, it should be easy as well. However, when I ran netstat -o
. This is what I get on port 8084:
Proto Local Address Foreign Address State PID
TCP 127.0.0.1:8084 www:49887 TIME_WAIT 0
Tried to restart the computer, error persisted. How am I supposed to taskkill
this?
windows 8.1
(updated the question to reflect this). I still didn't figure it out, as whenever I restart it is still there and with the samePID = 0
. I will try to run highjackthis and see if I can find something weird.TIME_WAIT
is (the residue of) a previous connection that has been closed, and shows pid 0 because it is no longer open by any process. To look for the listening (open) socket, add-a
tonetstat
and filter forLISTENING
e.g. withfindstr
; also-n
is faster. Alternatively since the miscreant came back after reboot, look in Services, or other autostarts usingmsconfig
or similar, for something webserverish configured to autostart. Incidentally that webpage is hopelessly confused;-o
is wrong for Unix, although-a -n
are good for both Windows and Unix.