gpt4 book ai didi

Tomcat的catalina没有启动

转载 作者:行者123 更新时间:2023-11-28 21:53:34 27 4
gpt4 key购买 nike

我正在尝试在 linux 上启动 tomcat,但我遇到了 LifecycleException 异常,其代码段如下:

Apr 2, 2014 8:33:53 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_38/jre/lib/amd64/server:/usr/java/jdk1.6.0_38/jre/lib/amd64:/usr/java/jdk1.6.0_38/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 2, 2014 8:33:53 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 2, 2014 8:33:53 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 890 ms
Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: java.lang.NoSuchMethodError: org.apache.naming.NamingContext.setExceptionOnFailedWrite(Z)V
at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:264)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:724)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Apr 2, 2014 8:33:53 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 6 ms

我正在尝试使用 startup.sh 启动它。

我可以猜测的一个原因是 Tomcat jar 可能不正确,或者不同版本的重复 jar 可能会导致此问题。我已经检查了两者,但找不到任何这样的东西。

如果有人能帮助我,我将不胜感激。

最佳答案

遇到了同样的问题并通过从 Tomcat 取消设置不必要的(在我的情况下都是)项目解决了它 - 高级 - 将 java 项目添加到 Tomcat 类路径

关于Tomcat的catalina没有启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22806449/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com