eclipse中Tomcat 启动时报错:...Server Tomcat v6.0 Server at localhost was unable to stat within 45 seconds,If the server requires more time, try increasing the timeout in the server editor....

原因: tomcat配置限定了部署的时间,当工程比较大时会出问题

解决方案:

找到workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件
<servers> <server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v6.0 Server at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v6.0 Server at localhost" name="Tomcat v6.0 Server at localhost" runtime-id="Apache Tomcat v6.0" server-type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.60" start-timeout="45" stop-timeout="15" testEnvironment="true" timestamp="3"/> </servers> 把start-timeout="45"改为 start-timeout="100"(根据自己的工程大小决定),重启eclipse

 

posted on 2013-05-10 12:38  筱筱清流水  阅读(197)  评论(0编辑  收藏  举报