tomcat 运行J2EE项目时,启动报错,如下......
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout inthe server editor.
eclipse中 tomcat 启动超时怎么办?
修改文件
找到 Eclipse的工作空间\.metadata\.plugins\org.eclipse.wst.server.core目录,修改目录内文件server.xml
把属性start-timeout="45" 设高一点就行了,如果start-timeout="450"
我的tomcat 7 内容是这样的:
<server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers2/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.70" server-type-id="org.eclipse.jst.server.tomcat.70" start-timeout="450" stop-timeout="150" testEnvironment="true" timestamp="3"/>
更好的办法是:
在tomcat server 的overview中,找到timeouts,那里有
指定完成启动与关闭的时间限制,手动修改下就好.