Tomcat cannot be started (2) _ only one usage of each socket address is normally permitted

Source: Internet
Author: User
Tags apache tomcat

Environment: myeclipse 6.5 + tomcat6.0.18 (installation Version)

An error occurred while deploying the project under Tomcat:

 

 

Error 1:Java. Lang. Exception: Socket bind failed: [730048] Only One usage of eachsocket address (Protocol/network address/port) is normally permitted.

 

 

Error 2:Lifecycleexception: Protocol handlerinitialization failed:Java. Lang. Exception: Socket bind failed: [730048] Only One usage of eachsocket address (Protocol/netw

Ork address/port) is normally permitted.

 

 

Error 3:Org. Apache. commons. DBCP. sqlnestedexception: Cannot create poolableconnectionfactory (IO exception: the network adapter cocould not establish THECONNECTION)

 

 

Error 4:Caused:Java. SQL. sqlexception: Io exception: the network adapter cocould not establish THECONNECTION

 

Error 5:Java.net. bindexception: Address already in use: jvm_bind

 

 

Solution: Open the service and find that the Service Apache Tomcat is set to automatic, change it to manual, and then stop the service.

 

 

 

Restart Tomcat and find that the deployed project is running and the problem is solved.

 

Summary:

1. Each time Tomcat is started, a service is enabled, and you do not need to open it in the service;

2. There will be a lot of errors reported on the server. You only need to handle the most important and critical errors (generally the first error order) (similar to Web applications );

 

 

 

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.