标签:ada book http local com img tom ssm xml文件
用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
标签:ada book http local com img tom ssm xml文件
原文地址:http://www.cnblogs.com/sMKing/p/6031942.html