Tomcat in the debug mode to start the direct prompt: The box can not be started, no error message, but the direct start, there will be an error message

Source: Internet
Author: User

Run the project today, debug mode start Tomcat, direct bullet box: Unable to start (translation, because later finishing, so all forget the then)

Later try to start directly, found not to play box, but console has reported error messages.

Similar to the following error

2015-8-13 17:29:03 Org.apache.tomcat.util.net.jioendpoint$acceptor Run
Critical: Socket Accept Failed
Java.net.SocketException:select failed
At Java.net.PlainSocketImpl.socketAccept (Native Method)
At Java.net.PlainSocketImpl.accept (plainsocketimpl.java:390)
At Java.net.ServerSocket.implAccept (serversocket.java:453)
At Java.net.ServerSocket.accept (serversocket.java:421)
At Org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (defaultserversocketfactory.java:61)
At Org.apache.tomcat.util.net.jioendpoint$acceptor.run (jioendpoint.java:365)
At Java.lang.Thread.run (thread.java:619)

This online a meal to find AH!!! Before checking that the Tomcat port is not occupied, it is not found. Whether Tomcat is not itself a problem, re-installed Tomcat, the result is still an error.

Method One, look at your machine installed not installed Thunderbolt Online Accelerator, Tomcat and Thunderbolt Online accelerator has conflict (what conflict to ask Thunder, online said it seems to be destroying the TCP/IP protocol), I put my thunder online accelerator unloading, in the start Tomcat does not explode above the error. ---others to test.

Method Two, "You can try the Netsh winsock reset command, enter the cmd input netsh winsock reset and then reboot, I have already been able to run"--online said this practice is also feasible, but I did not try, if you use this method can solve the problem, please leave a message below , convenient for other people. --my own test, it works.

Method Three, is to add additional startup parameters:-djava.net.preferipv4stack=true, such as: This method I tried to start Tomcat is not let the console burst error, but in the Address bar access: http://localhost:8080/, The browser is loaded and does not display the Tomcat home page. Cup is used at once to reach 100%.

Nothing in the real effect.

Tomcat in the debug mode to start the direct prompt: The box can not be started, no error message, but the direct start, there will be an error message

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.