Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires

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.

出现这个情况的原因有两个,要么是你的数据库连接connection超时,要么是你的项目真的在45s之间还没启动起来,是由于项目比较大的缘故。

这里写图片描述

首先,你得确认下你的数据库连接,尤其是在多个服务器之间转换或者服务器与本机之间项目转换的过程中。如果数据库库连接没有出错的话,那么你在调整下eclipse的这个45s的时间。

修改workspace.metadata.plugins\org.eclipse.wst.server.core\servers.xml文件。

将里面的45s修改成245s,这样,一定要记住,重启eclipse啊

猜你喜欢

转载自blog.csdn.net/qq_21383435/article/details/79938514
今日推荐