ava.net.SocketException:Unrecognized Windows Sockets error:0: jvm_bind (solution)

Source: Internet
Author: User

When we start the Tomcat service error message: java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bin

Analysis: From the error message we can see is the socket Java Virtual Machine error Experience this is generally caused by port occupancy

Solution:

A

Directly modify the port of the Tomcat server

Steps:

1: \program Files\apache Software Foundation\tomcat 7.0\conf Locate tomcat->conf file under Server.xml folder

2. Modify the port in the code below

<port=protocol=connectiontimeout=redirectport="8443"/>    


8080 is now the port used by Tomcat. After modifying the configuration file, you need to shut down the Tomcat server and start Tomcat to work normally (if not, you can turn off MyEclipse and Tomcat, then boot to normal use)

(ii)

Kill the process that is hogging our ports

There are a lot of situations in which Tomcat has been using a good operation (forced shut Tomcat) and other operations caused by the operation, then we will kill the process after the restart is not a problem, and just installed on Tomcat This problem, this may be another software industry with this port generated a conflict, In this case, it is recommended to replace the Tomcat port is the Cure method.

Steps:

1: Go to Server.xml to confirm the port number that Tomcat is using now

2: After the command line run the following command Netstat-ano query port usage


3: My default 8080 port found that this port is being used, the user's PID is 6136 (and my Tomcat is making an error and there is no boot so this is the problem)

4: Kill this process with his PID Run command: Taskkill-pid 6136/f


So we can end this process successfully.

It's perfectly normal to start the Tomcat server!

ava.net.SocketException:Unrecognized Windows Sockets error:0: jvm_bind (solution)

Related Article

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.