Tomcat v7.0 Server at localhost was unable to start within 45 seconds

eclipse 中tomcat启动超时报错如下:

Starting Tomcat v7.0 Server at localhost' has encountered a problem Server Tomcat v7.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启动错误图片如下:



 

出现上述错误是因为eclipse中配置tomcat的 timeouts时间过短,需要把tomcat的启动时间设置的长一些

tomcat启动超时的设置方法如下:

1.在servers中找到如图位置,双击图片标红的位置“tomcat v7.0 server at localhost

2.在tomcat的配置界面左边部分周到 timeout 设置tomcat start的时间 如下图:

方法二:

修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。 
把其中的start-timeout="45" 改为  start-timeout="100" 或者更长,根据不同同学的工程大小来设置。最后重启eclipse

另外:也有可能是项目有问题,导致一直启动不起来。

猜你喜欢

转载自5keit.iteye.com/blog/2327364
今日推荐