javaweb "Address already in use: JVM_Bind <null>:80" error , as follows.
- Caused by: java.net.BindException: Address already in use: JVM_Bind
- at java.net.DualStackPlainSocketImpl.bind0(Native Method)
- at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
- at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
- at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
- at java.net.ServerSocket.bind(ServerSocket.java:375)
- at java.net.ServerSocket.<init>(ServerSocket.java:237)
- at java.net.ServerSocket.<init>(ServerSocket.java:181)
- at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(
- DefaultServerSocketFactory.java:49)
- at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:394)
- ... 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.