Failed to initialize connector [duplicate]

不打扰是莪最后的温柔 提交于 2019-11-29 15:45:28

问题


SEVERE: Failed to initialize component [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]] org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available.

I have commented the connector for http and opened the connector for http2.

here is the code :

 <Connector port="9000" protocol="org.apache.coyote.http11.Http11AprProtocol"
                   maxThreads="150" SSLEnabled="true" >
            <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
            <SSLHostConfig>
                <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
                             certificateFile="conf/localhost-rsa-cert.pem"                         
                             type="RSA" />
            </SSLHostConfig>
        </Connector>

I am getting an error while starting the server.

来源:https://stackoverflow.com/questions/41893613/failed-to-initialize-connector

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!