zoukankan      html  css  js  c++  java
  • Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

    Server Tomcat v8.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.

    问题描写叙述:

    OS:Windows 7 x64

    Eclipse:

    Eclipse Java EE IDE for Web Developers.
    Version: Luna Service Release 2 (4.4.2)
    Build id: 20150219-0600


    Java Web项目启动调试时,提示此错误,例如以下图:


    这样的情况存在两种可能,一种是项目配置有错误(可能是数据库、Redis之类的配置错误。也可能是相关的服务没有启动,防火墙之类的);

    还有一种是项目启动的确实比較慢,须要更长的时间,解决方法例如以下:

    打开Server视图,双击Tomcat v8.0 Server


    将启动时间限制改大:


    按Ctrl+S保存,然后再启动调试。


    假设将时间改的非常大了。还是不能启动成功,有下面两种情况:

    1、项目配置有问题,上面说过了;

    2、tomcat 的 webapps 文件夹下还有其他的项目。导致服务启动失败了。尝试删除其他项目,再启动调试看看。


    =============================我是分隔线=====================================


  • 相关阅读:
    final finally finalize区别
    final 有什么用
    Java基础(一) 八大基本数据类型
    22
    21
    20
    18
    17
    16
    15
  • 原文地址:https://www.cnblogs.com/yangykaifa/p/7086264.html
Copyright © 2011-2022 走看看