“java.net.BindException: Address already in use: JVM_Bind” when I start Jetty in eclipse mars

随声附和 提交于 2019-12-01 01:38:49

WARN:oejuc.AbstractLifeCycle:FAILED SelectChannelConnector@0.0.0.0:8080 FAILED: java.net.BindException: Address already in use

I had the same problem. In my case i tried to run jetty server on windows 8. When i execute mvn jetty:run command had the error on port number 8080. My port no 8080 was running by malware(sysnetwk.exe) after i killed the process(sysnetwk.exe) running on 8080 jetty server started. it works fine now If anyone has this problem they can follow below steps

  1. you need to find which process running on port no (in my case port no 8080)

    c:\ Windows\system32>netstat -ano | findstr 8080

    TCP 0.0.0.0:8080 LISTENING 6772

  2. Kill the process using PID

    c:\ Windows\system32>taskkill /F /pid 6772

    Success: process terminated.

If you can't kill the process using cmd prompt then you can use task manager(ctrl+shift+esc) to kill the process

This may be because of other thread already using the JVM debug port. go to the task manager and kill the javaw.exe and java.exe and try again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!