W3Schools Learner's Blog

w3Schools programming knowledge summary website

div

12/12/2017

"Address already in use: JVM_Bind :80" error solve

javaweb "Address already in use: JVM_Bind <null>:80"  error , as follows.
  1. Caused by: java.net.BindException: Address already in use: JVM_Bind
  2. at java.net.DualStackPlainSocketImpl.bind0(Native Method)
  3. at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
  4. at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
  5. at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
  6. at java.net.ServerSocket.bind(ServerSocket.java:375)
  7. at java.net.ServerSocket.<init>(ServerSocket.java:237)
  8. at java.net.ServerSocket.<init>(ServerSocket.java:181)
  9. at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(
  10. DefaultServerSocketFactory.java:49)
  11. at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
  12. ... 35 more

This is because the 80 port of our project is occupied. The solution is to modify the Tomcat port configuration of pom.xml in Maven project.
change it to another port number, or turn off the previously run items, which is very simple.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.