We will hit this error when we are trying to start a Java web app or start Jetty server. Basically, this error lets us know that there is a process that is using port
8080. And this is also the port that Jetty uses port it by default, therefore this is the cause of the problem.
In order to fix this problem, we simply find out which PROCESS is using port
8080 and kill it immediately.
Here is step by step how to do this:
1. Checking network and Internet connections
netstat -aon | find "8080"
netstat -tulpn | grep '8080'
You will get something like this:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 15684 TCP [::]:8080 [::]:0 LISTENING 15684 ...
2. Checking which process id has binded to your port
In the above, the process id that has binded to 8080 port is
3. Kill the process
taskkill /f /pid 15684
kill -9 15684
You are done! Let’s try again :]