在 tomcat 的 server.xml 配置 SSL 后,Eclipse 无法启动 tomcat 服务器

Eclipse couldn't startup tomcat server after configuring SSL at server.xml of tomcat

因为我想把 tomcat 从 http 改成 https,所以我把 server.xml 改成这样:

<!--
<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" /> 
-->
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
               SSLEnabled="true" maxThreads="150" scheme="https"
               secure="true" clientAuth="false" connectionTimeout="20000" 
               keystoreFile="D:/sslDemo/tomcat.keystore" 
               keystorePass="123456" sslProtocol="TLS" />

更改前,我可以在Eclipse中启动tomcat,但更改后失败了。 错误提示是这样的:

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.

我可以通过cmd启动它。 谁能告诉我有什么问题?非常感谢。

只是增加服务器启动超时

转到服务器视图,双击其中一个服务器,展开超时选项并为其设置值