MyEclipse running Tomcat warning Critical error critical: Error starting endpoint Java.lang.Exception:Socket

Source: Internet
Author: User

Cause: The port that Tomcat is going to open is occupied!
Workaround:
If you are using port 8080, find out which program is taking up the port as follows: "Start"--"Run"-"cmd"-"Netstat-ano" Enter the following results appear:
C:\users\candy>netstat-ano
Active connections
Protocol local address external address state PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 848
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 3028
TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 5080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5080
........................................................................................................
Find the corresponding port is occupied by the PID (process identifier) of the program, as shown above is 5080;
Next, right-click on the taskbar, open Task Manager, you can see the corresponding PID 5080 program. Mine is Javaw.exe, because I am using tomcat to open port 8080.
Next, after you see this program, you can try to right-click the end of the process, if not the system process is occupied.
The final step, restart Tomcat, and it's all done.
(Note: If you do not see the PID of this item, please click on the Task Manager's menu bar, view, select the column, select the PID (process identifier) in the popup window, tick it OK. )

MyEclipse running Tomcat warning Critical error critical: Error starting endpoint Java.lang.Exception:Socket

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.