org.apache.catalina.LifecycleException: Failed to stop component(生命周期异常)

真是郁闷透顶,以前昨天还可以用,换了myeclipse自带的tomcat就可以用:

异常:

org.apache.catalina.LifecycleException: Failed to stop component(生命周期异常)

org.apache.catalina.LifecycleException: Failed to stop component [org.apache.catalina.webresources.StandardRoot@34ccd6d9]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
at org.apache.catalina.core.StandardContext.resourcesStop(StandardContext.java:)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.startup.Catalina.start(Catalina.java:)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method.invoke(Method.java:)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:)
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [org.apache.catalina.webresources.DirResourceSet@370736d9] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
at org.apache.catalina.webresources.StandardRoot.stopInternal(StandardRoot.java:)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
... more
十二月 , :: 下午 org.apache.catalina.util.LifecycleBase destroy
警告: Calling stop() on failed component [org.apache.catalina.webresources.StandardRoot@34ccd6d9] to trigger clean-up did not complete.
org.apache.catalina.LifecycleException: Failed to stop component [org.apache.catalina.webresources.StandardRoot@34ccd6d9]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:)
at org.apache.catalina.startup.Catalina.start(Catalina.java:)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method.invoke(Method.java:)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:)
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [org.apache.catalina.webresources.DirResourceSet@370736d9] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
at org.apache.catalina.webresources.StandardRoot.stopInternal(StandardRoot.java:)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:)
... more

解决方法(我把原先的tomcat给删除了,重新配置tomcat就ok,特别需要注意的是tomcat里面一定要是纯净的,我是直接在官网上下载的tomcat):

org.apache.catalina.LifecycleException: Failed to stop component(生命周期异常)

上一篇:org.apache.catalina.LifecycleException: Failed to start component


下一篇:js拾遗:appendChild 添加移动节点