欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

eclipse中 tomcat 启动超时

程序员文章站 2022-06-16 14:25:35
...

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 in the 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,那里有
  指定完成启动与关闭的时间限制,手动修改下就好.