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

Posted 小猴子爱吃桃

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds相关的知识,希望对你有一定的参考价值。

用SSM搭建的项目,部署时出现了以下错误

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.

启动时间设置得太短,导致无法正常启动。

我使用的是MyEclipse2015,直接通过页面进行修改

 也可以通过修改配置文件的方式解决:

首先找到workspace\\.metadata\\.plugins\\org.eclipse.wst.server.core\\servers.xml文件。

 <server auto-publish-setting="2" auto-publish-time="1" deployDir="wtpwebapps" has-configuration="false" hostname="localhost" id="Tomcat v8.0 Server at localhost" java-location="D:\\soft\\myeclipse2015\\binary\\com.sun.java.jdk7.win32.x86_64_1.7.0.u45" name="Tomcat v8.0 Server at localhost" runtime-id="Apache Tomcat v8.0" server-location="D:\\soft\\apache-tomcat-8.0.36-windows-x64\\apache-tomcat-8.0.36" server-type="org.eclipse.jst.server.tomcat.80" server-type-id="org.eclipse.jst.server.tomcat.80" start-timeout="120" stop-timeout="15" testEnvironment="false" timestamp="52" useAutoDeploy="true">
    <list key="modules" value0="book::org.eclipse.jst.jee.server:book::jst.web::3.0%%EXPLODED"/>
  </server>

把其中的start-timeout="45" 改为 start-timeout="120" 或者更长,依据自己的工程大小来设定。
最后再重启编译器就可以了

 

以上是关于Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds的主要内容,如果未能解决你的问题,请参考以下文章

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

'Starting Tomcat v8.0 Server at localhost' has encountered a problem.

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

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

解决“The Tomcat server configuration at ServersTomcat v8.0 Server at localhost-config is missing. Ch(示