java.lang.classnotfoundexception:org.apache.coyote.http11.http11 protocol

发布于 2025-01-21 23:54:09 字数 1934 浏览 0 评论 0原文

将Apache Tomcat从9.0.48升级到9.0.62版本后,我的应用程序开始抛出以下错误: -

org.apache.catalina.startup.Catalina.stopServer Error stopping Catalina
    org.apache.catalina.LifecycleException: Failed to stop component [StandardService[Catalina]]
        at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:267)
        at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:979)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:656)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:391)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:481)
    Caused by: java.lang.NullPointerException
        at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:472)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
        ... 9 more
[main] org.apache.catalina.connector.Connector.<init> Protocol handler instantiation failed
    java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol

我还检查了/conf/server.xml文件,它还正确地使用了连接器协议

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLSv1.2" />

不确定是什么原因导致此错误。

After upgrading Apache tomcat from 9.0.48 to 9.0.62 version My application started throwing following error :-

org.apache.catalina.startup.Catalina.stopServer Error stopping Catalina
    org.apache.catalina.LifecycleException: Failed to stop component [StandardService[Catalina]]
        at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:267)
        at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:979)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:656)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:391)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:481)
    Caused by: java.lang.NullPointerException
        at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:472)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
        ... 9 more
[main] org.apache.catalina.connector.Connector.<init> Protocol handler instantiation failed
    java.lang.ClassNotFoundException: org.apache.coyote.http11.Http11Protocol

I've checked the /conf/server.xml file also , it correctly uses the connector protocol

<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLSv1.2" />

Not sure what is causing this error.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文