Tomcat Not Starting Through Eclipse (Timeout)

后端 未结 27 2372
终归单人心
终归单人心 2020-12-01 06:41

I am trying to run Tomcat through Eclipse. This is something that I have done for the past several years. It was working yesterday and now it is not. The error I get is

相关标签:
27条回答
  • 2020-12-01 06:51

    I've found that this can happen due to invalid/corrupted/??? breakpoints in your code when you start in "Debug". It is often accompanied by slow start up times.

    "Remove All Breakpoints" cleared this up for me.

    0 讨论(0)
  • 2020-12-01 06:51

    my problem turned out i had edited the tomcat install server.xml file for ssl on 8443 and no longer on 8080...eclipse pulls that in and would hang on startup... copied original server.xml and created server over again and all good...i have great aim shooting my own feet...

    0 讨论(0)
  • 2020-12-01 06:55

    Go to Windows --> Preferences --> NetworkConnections --> there is a drop down having three values:

    1. Direct
    2. Manual
    3. Native

    By default it is native, so select the manual and click on Apply.

    It will work for Eclipse Juno EE with Tomcat 7.

    0 讨论(0)
  • 2020-12-01 06:56

    In my case, I had disabled the HTTP/1.1 Connector on port 8080 in favor of an SSLEnabled (https) HTTP/1.1 Connector on port 8443.

    I'm not sure if the Eclipse/Tomcat communication was failing because of the wrong port or the wrong protocol, but when I added the HTTP/1.1 Connector on port 8080 back into my server.xml (in addition to the secure connector on port 8443), Eclipse was able to correctly detect Tomcat's successful startup.

    It appears that for Eclipse to recognize that Tomcat has successfully started, Tomcat must be configured to have a non-SSL Connector on port 8080.

    0 讨论(0)
  • 2020-12-01 06:57

    Still facing the same issue after trying all the above solutions. i solved the problem by adding http connector to server.xml. In fact, before fixing the issue, i have only https connector. it seems that eclipse look for tomcat startup by requesting the http url, once removed eclipse can't determine if tomcat is successfully started.

    0 讨论(0)
  • 2020-12-01 06:57

    This can also happen, when you set the host name in the server settings to an invalid value.

    0 讨论(0)
提交回复
热议问题