环境:MyEclipse 6.5+Tomcat6.0.18(安装版本)
在Tomcat下部署项目出错:
错误1:java.lang.Exception: Socket bind failed: [730048] Only one usage of eachsocket address (protocol/network address/port) is normally permitted.
错误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.
错误3:org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish theconnection)
错误4:Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not establish theconnection
错误5:java.net.BindException: Address already in use: JVM_Bind
解决办法:打开服务,发现Apache Tomcat 这个服务设置为自动,把它改为手动,然后停止此服务。
重新启动Tomcat,发现部署的项目跑起来了,问题解决。
总结:
1.每次启动Tomcat都对应一个服务开启,不用在服务里打开;
2.服务器报错会出现一大堆,只需要处理最核心、最关键的那个(一般是报错顺序最前面的 )(web方面的应用类似);