解决 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启动错误图片如下:

解决 Tomcat v7.0 Server at localhost was unable to start within 45 seconds_第1张图片

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

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

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

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

解决 Tomcat v7.0 Server at localhost was unable to start within 45 seconds_第2张图片

方法二:

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

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



你可能感兴趣的:(总结)