当启动tomcat时候出现 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 的错误,那表示你的tomcat启动超时了,有时候你重新启动下就好了,但有时需要重新启动很多次,如果你不想这样的话,你只需修改下tomcat的启动 时间就行了
步骤如下:
修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
步骤如下:
修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
把 start-timeout="45" 改为 start-timeout="1000" 或者更长 重启eclipse就可以了
2.具体现象就是eclipse在启动tomcat时, 会报错: “Timeout waiting for Tomcatv6.0Server @ localhost to start. Server did not start after 45s”的错误。尤其是在debug时更加容易出现这个问题。通过错误提示来看,是因为tomcat启动时间超过了45m,于是被终止了启动。出现这个问 题,可能是应用程序比较庞大,有很多启动加载项和初始化工作,或者log太多。想着加大tomcat启动超时的时间,却在我的eclipse3.3中一直 没有找到相关项。通过google还是找到了这个问题的解决办法,具体如下:在eclipse中找菜单winodw -> preferences-> server -> 找 Server timeoutdelay下拉列表项目。选择你想要的。我选择unlimited让其不再有时间限制。就是说,服务启动多长时间都无所谓。问题就此解决。