Severity: Error Initializing Endpoint

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.