为tomcat添加https支持后。我无法运行该应用程序
我的web.xml配置
<display-name>EBaySignin</display-name>
<welcome-file-list>
<welcome-file>credentials.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>All Access</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
(Tomcat)server.xml config:
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<Connector port="8443" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="/Users/ArunAbraham/.keystore" keystorePass="password"
protocol="org.apache.coyote.http11.Http11NioProtocol"
clientAuth="false" sslProtocol="TLS" />
现在我无法访问该应用程序,我收到错误:无法连接到服务器。我能错过什么? ("https://localhost:8443/EBaySignin/")
答案 0 :(得分:0)
有几件事可能是错的。 还要更具体地说明错误并检查服务器日志。 可能的问题: