zoukankan      html  css  js  c++  java
  • 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.

    在部署的时候出现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.pluginsorg.eclipse.wst.server.coreservers.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就可以了。

    试过  可以解决启动报错问题

  • 相关阅读:
    JavaScript自定义事件
    用Java构建一个简单的WebSocket聊天室
    PHP实现支付宝小程序用户授权的工具类
    jq ajax超时设置
    gulp使用笔记
    vue学习—组件的定义注册
    echarts设置线条粗细
    求js数组的最大值和最小值
    js删除数组中的 "NaN"
    jq方法(end)
  • 原文地址:https://www.cnblogs.com/huzi007/p/5601195.html
Copyright © 2011-2022 走看看