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 );