【SSH网上商城】Server MyEclipse Tomcat v8.5 was unable to start within 45 seconds. If the server requires.
问题描述
在MyEclipse中启动javaWeb项目时出现了Server MyEclipse Tomcat v8.5 was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.(译为:MyEclipse 的tomcat不能再45秒内启动服务。服务器需要更长的时间)的错误提示。如下图
出现问题原因:
项目启动的比较慢,需要更长的时间。
解决方法
修改Tomcat的启动时限。
方法一
- 打开server视图,双击Tomcat
2、修改启动时限
方法二
直接修改servers.xml文件中的start-timeout="45"改为start-timeout="300" 或者更长,根据工程大小来设置。最后重启eclipse。
文件位置为:workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml
经验总结:
认真阅读错误提示,帮助自己找到错误原因。英语学习很重要。