tomcat服务器报Server at localhost was unable to start within 45 seconds的问题

  今天在同一个tomcat服务器下部署了2个不同的应用程序,然后启动时报错: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服务器中的server.xml文件,没发现有设置timeout的参数啊。于是我又开始瞎倒腾了,后来才发现是要双击eclipse中的tomcat服务器,在出现的页面的右上角有个timeout

的配置项。将参数start(in seconds)设置为100或更大,然后重启eclipse即可。这个原因就是:启动tomcat需要的时间比45秒大了,Eclipse会判断tomcat在默认的时间是否启动了,如果在

默认45秒没有启动就会报错。

  当然,tomcat启动的时间有时快有时慢,也可以不设置,重启一下tomcat,如果不报错也可以,不过最好还是把启动时间设置稍大点。

原文地址:https://www.cnblogs.com/tanglc/p/3666743.html