Tomcat的catalina没有开始

时间:2014-04-02 09:04:07

标签: tomcat

我正在尝试在 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可能会产生这个问题。我检查了两者,但找不到任何这样的东西。

感谢有人能帮助我。

1 个答案:

答案 0 :(得分:0)

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