美文网首页
org.apache.catalina.LifecycleExc

org.apache.catalina.LifecycleExc

作者: adXiang | 来源:发表于2017-08-13 17:08 被阅读53次

    idea中运行tomcat报如下错误解决办法

    严重: ContainerBase.addChild: start:
    
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    
    at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1740)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1470)
    
    at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
    
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1311)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1403)
    
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:832)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$255(TCPTransport.java:683)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$2/1893793964.run(Unknown Source)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    
    at java.lang.Thread.run(Thread.java:745)
    
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/dbutils/ResultSetHandler
    
    at java.lang.Class.getDeclaredFields0(Native Method)
    
    at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
    
    at java.lang.Class.getDeclaredFields(Class.java:1916)
    
    at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
    
    at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:261)
    
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:140)
    
    at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
    
    at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:400)
    
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
    
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)
    
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
    
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    
    ... 43 more
    
    Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbutils.ResultSetHandler
    
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1718)
    
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
    
    ... 57 more
    
    八月 13, 2017 1:15:49 下午 org.apache.tomcat.util.modeler.BaseModelMBean invoke
    
    严重: Exception invoking method manageApp
    
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
    
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    
    at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1740)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1470)
    
    at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
    
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1311)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1403)
    
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:832)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$255(TCPTransport.java:683)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$2/1893793964.run(Unknown Source)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    
    at java.lang.Thread.run(Thread.java:745)
    
    八月 13, 2017 1:15:49 下午 org.apache.tomcat.util.modeler.BaseModelMBean invoke
    
    严重: Exception invoking method createStandardContext
    
    javax.management.RuntimeOperationsException: Exception invoking method manageApp
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:309)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:618)
    
    at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:565)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1470)
    
    at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
    
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1311)
    
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1403)
    
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:832)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:200)
    
    at sun.rmi.transport.Transport$1.run(Transport.java:197)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$255(TCPTransport.java:683)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$2/1893793964.run(Unknown Source)
    
    at java.security.AccessController.doPrivileged(Native Method)
    
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
    
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    
    at java.lang.Thread.run(Thread.java:745)
    
    Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
    
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    
    at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1740)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    
    at java.lang.reflect.Method.invoke(Method.java:497)
    
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
    
    ... 34 more
    

    解决办法: 重新按步骤添加Web Application:Exploded
    1.如图


    2.如图


    3.如图


    4.如图


    相关文章

      网友评论

          本文标题:org.apache.catalina.LifecycleExc

          本文链接:https://www.haomeiwen.com/subject/najerxtx.html