java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind
At Java.net.PlainSocketImpl.socketBind (Native method)
At Java.net.PlainSocketImpl.bind (plainsocketimpl.java:359)
At Java.net.ServerSocket.bind (serversocket.java:319)
At Java.net.serversocket.<init> (serversocket.java:185)
At Java.net.serversocket.<init> (serversocket.java:141)
At Org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket (defaultserversocketfactory.java:50)
At Org.apache.tomcat.util.net.JIoEndpoint.init (jioendpoint.java:496)
At Org.apache.coyote.http11.Http11Protocol.init (http11protocol.java:176)
At Org.apache.catalina.connector.Connector.initialize (connector.java:1058)
At Org.apache.catalina.core.StandardService.initialize (standardservice.java:677)
At Org.apache.catalina.core.StandardServer.initialize (standardserver.java:795)
At Org.apache.catalina.startup.Catalina.load (catalina.java:530)
In fact, this is the problem that the port number is occupied. Only in the conf\resin.conf the <server-default> node under the
After a careful look at the resin configuration file, it is found that the project test only needs to export the project's war file to the WebApps directory. No manual decompression is required. Note that you have to modify the resin.conf file at this time
<web-app id= "/" root-directory= "Webapps/root"/> The startup directory changes to the name of the war when you pack it. Of course, if you do not modify the configuration file, you can manually extract the war package to the Webapps/root. Effect is the same
Alternatively, you can open the Task Manager and turn off the server that is using the port.