--- title: 'org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available' tags: Tomcat description: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available --- # org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available --- * [TOC] --- ## 工具 * Tomcat 9 https://tomcat.apache.org/download-90.cgi * --- ## Tomcat 解決方法 1 Http11AprProtocol -> Http11NioProtocol ``` xml ... <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="8443" maxThreads="200" maxParameterCount="1000" scheme="https" secure="true" SSLEnabled="true" SSLCertificateFile="conf/server.crt" SSLCertificateKeyFile="conf/server.key" SSLVerifyClient="optional" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/> ... ``` -- ## Tomcat 解決方法 2 Http11AprProtocol -> Http11NioProtocol ``` xml ... <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="8443" maxThreads="200" maxParameterCount="1000" scheme="https" secure="true" SSLEnabled="true" SSLCertificateFile="conf/server.crt" SSLCertificateKeyFile="conf/server.key" SSLVerifyClient="optional" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/> ... ``` -- ## 參考鏈結 https://docs.gandi.net/zh-hant/ssl/common_operations/csr.html https://ssorc.tw/7142/openssl-command-line-convert-file-for-pem-der-p7b-pfx-cer/ https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up