摘要:[Tomcat] 解決Tomcat 6 出現"警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'false' did not find a matching property."
JDK using version 6 update 31 x64
TOmcat using version 6.0.35 x64
OS is Windows 20098 R2 x64
在佈署Tomcat 下的SSL服務時,依照設定手冊設定好後,請動Tomcat卻發現無法順利啟動,出現下列的錯誤訊息
警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'clientAuth' to 'false' did not find a matching property.
且會出現找不到相關的xxxx.jks檔案
解決方式就是將原本server.xml中的
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="your jks file"
keyAlias="your alias name"
keystorePass="your password" />
protocol="HTTP/1.1"
替換成
protocol="org.apache.coyote.http11.Http11Protocol"
修正後的server.xml如下
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="your jks file"
keyAlias="your alias name"
keystorePass="your password" />
然後再重新啟動Tomcat,服務就可以順利啟動了。