在部署的时候出现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.
也就是我们限定了部署的时间导致的错误,经过在网上的查找,找到了以下的解决方案:
我们找到当前工程的workplace目录,然后按下面的操作:
找到workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
<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 v6.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"/>
</servers>
把 其中的start-timeout="45" 改为 start-timeout="100" 或者更长,根据不同同学的工程大小来设置。
最后重启eclipse就可以了。
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires
Posted 洁瑞小弟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires相关的知识,希望对你有一定的参考价值。
以上是关于Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires的主要内容,如果未能解决你的问题,请参考以下文章
Server Tomcat v7.0 Server at localhost failed to start解决办法
eclipse 的 tomcat 启动报错(Server Tomcat v7.0 Server at localhost failed to start.)
Server Tomcat v7.0 Server at localhost failed to start.
tomcat7 Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-c
问题描述:Server Tomcat v7.0 Server at localhost failed to start.