2

严重:无法初始化组件 [Connector[org.apache.coyote.http11.Http11AprProtocol-8443]] org.apache.catalina.LifecycleException:配置的协议 [org.apache.coyote.http11.Http11AprProtocol] 需要 APR/native 库这是不可用的。

下面是 Eclipse 霓虹灯服务器输出窗口 我已经评论了连接器http并打开了连接器http2

这是代码:

 <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>

启动服务器时出现错误。

4

0 回答 0