我已从先前版本更新了我的webapp,因此我不得不重新配置tomcat服务器。当我将浏览器指向 localhost:8080 时,它可以正常工作,但是当我在 server.xml 启用 https 时,我将我的浏览器指向 localhost:8443 它没有显示登录页面,而是尝试下载空文件:
server.xml中:
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true"
enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150"
minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443"
useBodyEncodingForURI="true"/>
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false"
connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false"
keystoreFile="*masked*" keystorePass="*masked*" keystoreType="JKS"
maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8443"
protocol="org.apache.coyote.http11.Http11Protocol" scheme="https" secure="true"
sslProtocol="TLS" useBodyEncodingForURI="true"/>
我可以找到并运行该端口,并且 catalina.log 没有错误:
Mar 30, 2014 12:09:10 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Atlassian\JIRA 4.3\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;.
Mar 30, 2014 12:09:10 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 30, 2014 12:09:10 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8443"]
Mar 30, 2014 12:09:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1365 ms
Mar 30, 2014 12:09:11 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 30, 2014 12:09:11 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
我无法找到我失踪的东西,提前致谢。