Tomcat 启动超时解决方法
描述:Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds…(Tomcat容器启动超时)
解决方案(一)
找到工作空间 workspace\metadata\plugins\org.eclipse.wst.server.core\servers.xml文件
用文本编辑器打开
如下:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<servers>
<server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v7.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v7.0 Server at localhost" name="Tomcat v7.0 Server at localhost" runtime-id="Apache Tomcat v7.0" server-type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.70" start-timeout="**45**" stop-timeout="15" testEnvironment="true" timestamp="3">
<list key="modules" value0="smartfuel::org.eclipse.jst.j2ee.server:smartfuel::jst.web::2.4"/>
</server>
</servers>
把 start-timeout=“45” 改为 start-timeout=“10000” 或者更长时间,根据你心情而定,然后重启eclipse软件,在运行.
解决方案(二)
直接在软件里修改,双击tomcat视图,打开下图所示界面,点击Timeouts,然后修改Start时间(例如我修改的10000s),改完后保存,然后重启Tomcat容器