Tomcat启动时报启动时间没有在45秒内,解决办法
最近启动Tomcat时,经常出现如下错误:
Server Tomcat v8.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启动的时间不能超过45秒,所以如果启动超过了,就会报错。
解决的方法很简单就是自己手动修改tomcat的启动时间.
解决方法如下:
找到自己的工作区间workspace–>.metadata–>.plugins–>org.eclipse.wst.server.core–>servers.xml
用记事本打开servers.xml,修改start-timeout的值,即你想要的启动最长时间为多少。
总结:希望这边文章能帮助到你解决这个问题!!!