###Exception:
Caused by: java.net.BindException: Address already in use: JVM_Bind <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:407)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:623)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:981)
... 31 more
###Solution:
- Run Command Prompt as Adminstrator
- netstat -a -o -n
C:\WINDOWS\system32>netstat -a -o -n
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 900
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:1158 0.0.0.0:0 LISTENING 4920
TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 8984
TCP 0.0.0.0:3938 0.0.0.0:0 LISTENING 4180
TCP 0.0.0.0:5520 0.0.0.0:0 LISTENING 4920
TCP 0.0.0.0:5985 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 10600
TCP 0.0.0.0:47001 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING 644
Find the PID for Local Address 0.0.0.0:8080 (In this example: 10600)
3.taskkill /F /PID 10600
C:\WINDOWS\system32>taskkill /F /PID 10600
SUCCESS: The process with PID 10600 has been terminated.
Done!
Restart the server.
C:\Windows\System32>taskkill /F /PID 1664
ERROR: The process with PID 1664 could not be terminated.
Reason: Access is denied.
i am getting below error. please help.thanks