012-11-16 11:38:48 org. apache. coyote. http11.Http11Protocol init
Severe: 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: 365)
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 (defaserverserversocketfactory. java: 50)
At org.apache.tomcat.util.net. JIoEndpoint. init (JIoEndpoint. java: 538)
At org. apache. coyote. http11.Http11Protocol. init (Http11Protocol. java: 176)
At org. apache. catalina. connector. Connector. initialize (Connector. java: 1049)
At org. apache. catalina. core. StandardService. initialize (StandardService. java: 703)
At org. apache. catalina. core. StandardServer. initialize (StandardServer. java: 838)
At org. apache. catalina. startup. Catalina. load (Catalina. java: 538)
At org. apache. catalina. startup. Catalina. load (Catalina. java: 562)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 39)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 25)
At java. lang. reflect. Method. invoke (Method. java: 597)
At org. apache. catalina. startup. Bootstrap. load (Bootstrap. java: 261)
At org. apache. catalina. startup. Bootstrap. main (Bootstrap. java: 413)
2012-11-16 11:38:48 org. apache. catalina. core. StandardService initialize
Severe: Failed to initialize connector [Connector [HTTP/1.1-8080]
LifecycleException: Protocol handler initialization failed: java.net. SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
At org. apache. catalina. connector. Connector. initialize (Connector. java: 1051)
At org. apache. catalina. core. StandardService. initialize (StandardService. java: 703)
At org. apache. catalina. core. StandardServer. initialize (StandardServer. java: 838)
At org. apache. catalina. startup. Catalina. load (Catalina. java: 538)
At org. apache. catalina. startup. Catalina. load (Catalina. java: 562)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 39)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 25)
At java. lang. reflect. Method. invoke (Method. java: 597)
At org. apache. catalina. startup. Bootstrap. load (Bootstrap. java: 261)
At org. apache. catalina. startup. Bootstrap. main (Bootstrap. java: 413)
2012-11-16 11:38:48 org. apache. catalina. startup. Catalina load
Information: Initialization processed in 608 MS
Java.net. SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
The cause of this exception is that the server port is occupied, so the solution is:
1. Change the server port number; www.2cto.com
2. Disable the process that occupies the current port.
The second method is described below.
1. first go to the command line to check whether the port is occupied
Run netstat-ano.
My server port is 443
This port is already occupied by processes with a PID of 3432.
2. view the process whose PID is 3432
Command: tasklist | findstr "3432"
Because the process with PID 3432 has been disabled when the problem is solved, I use 2784 for the demonstration.
It can be seen that the process whose PID is 2784 is ConnectifyService.exe
The first solution is to disable the connectifyservice.exe process.
The second solution is to directly view the process whose PID is 3432 through the task manager, and then disable
Windows Task Manager-> View-> select the PID column, view the task manager, and turn off the process with PID 3432.