当前位置: 代码迷 >> 综合 >> Server MyEclipse Tomcat v7.0 was unable to start within 45 seconds. If the server requires more time
  详细解决方案

Server MyEclipse Tomcat v7.0 was unable to start within 45 seconds. If the server requires more time

热度:2   发布时间:2023-12-16 21:31:15.0

我们在启动Tomcat的时候,经常会报这种错误:

Server MyEclipse Tomcat v7.0 was unable to start within 45 seconds. If the server requires more time

翻译为:

MyEclipse 的tomcat不能再45秒内启动服务。服务器需要更长的时间;

那么,我们就将Tomcat启动的值设置成更长的时间:

1.我们在MyEclipse工作目录中找到:workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。

2.把其中的start-timeout="45" 改为  start-timeout="450" 或者更长,根据工程大小来设置。

代码如下:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<servers><server DRIVER_CREATED_2="true" HOME_DIR="C:/Users/user/.myeclipse/derby" PORT="1527" derby_autostart_timeout="3000" derby_enable_autostart="true" hostname="localhost" id="com.genuitec.derby.server" id-set="true" me-disable-overview-page="true" name="MyEclipse Derby" server-type="com.genuitec.derby.server" server-type-id="com.genuitec.derby.server" single-instance="true" start-timeout="240" stop-timeout="240" timestamp="0"/><server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/MyEclipse Tomcat v7.0-config" deployDir="wtpwebapps" has-configuration="true" hostname="localhost" id="com.genuitec.embedded.tomcat.server.v70" id-set="true" java-location="D:\MyEclipse 2016 CI\binary\com.sun.java.jdk8.win32.x86_64_1.8.0.u66" name="MyEclipse Tomcat v7.0" runtime-id="com.genuitec.embedded.tomcat.runtime.v70" server-location="D:\MyEclipse 2016 CI\plugins\com.genuitec.eclipse.server.embedded.tomcat.core_13.0.0.me201602031002\tomcat70" server-type="com.genuitec.embedded.tomcat.server.v70" server-type-id="com.genuitec.embedded.tomcat.server.v70" single-instance="true" start-timeout="450" stop-timeout="15" testEnvironment="false" timestamp="1" useAutoDeploy="true"><list key="modules" value0="OneMuWe::org.eclipse.jst.jee.server:OneMuWe::jst.web::3.0%%EXPLODED"/></server>
</servers>

3.重启MyEclipse。

这样问题就完美的解决了。

 

作者:Roger_CoderLife

链接:https:blog.csdn.net/Roger_CoderLife/article/details/84175469

本文为Roger_CoderLife的原创文章,著作权归作者所有,转载请注明原文出处,欢迎转载!

 

  相关解决方案