1. Questions
Throws an exception when you start Tomcat through eclipse
Info: The Apache Tomcat Native Library which allows optimal performance in production environments is not found on the Java . Library.path:c:\users\jun\appdata\local\genuitec\common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin; C:\Users\jun\AppData\Local\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.6.0. Me201007231647\tomcat\bin
2015-4-1 15:28:24 Org.apache.coyote.http11.Http11Protocol Init
Severity: Error Initializing Endpoint
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)
The reason for this exception is that the server port is occupied
The solutions include the following two kinds of methods:
One: Change the port number of the server;
Second: Close the process that occupies the port currently occupied
2. Change the server port number
To the Server.xml file under the Conf folder under the Tomcat directory, locate
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
Modify the port to
<connector port= "8088" protocol= "ajp/1.3" redirectport= "8443"/>
3. Close the process that currently occupies the port
1) First enter the command line to see if the port is occupied
Use command: Netstat-ano
The port of my server is 8080
This port has been occupied by a process with a PID of 43296
2) end the PID for 43296 process through Task Manager or Taskkill program.
Taskkill/pid 43296
taskkill command Use Daquanhttp://www.douban.com/note/41129775/
Severity: Error Initializing Endpoint