Tomcat Not Starting Through Eclipse (Timeout)

后端 未结 27 2445
终归单人心
终归单人心 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 07:09

    Well, I tried all these options, I could not get my recent version of STS (Spring Tool Suite 3.7.1.201510041213-RELEASE) to figure out that Tomcat had started.

    I tried Tomcat 7.0.64, 8.0.26, 8.0.28. All with the same results. I did get vanilla Tomcat installs to work, so I figured it must a problem with my server.xml (or other file).

    So I went through line by line until the server view would stop picking up the started status. Long story short, setting the secure attribute (to any value, like false) on a Connector causes STS to assume that it's another SSL handler.

    For example:

    
    

    Will cause STS to freak out, while:

    
    

    Works as intended.

    It looks like STS assumes that by merely having the secure attribute, regardless of value, it's an SSL handler. Older versions of STS don't seem to have this problem though. Someone has already filed a very similar bug.

    Also note that the server configuration pane shows:

    When the server.xml has the secure attribute on a non-SSL connector (and behavior is somewhat wonky), and:

    The normal ports listed when it is removed.

提交回复
热议问题