码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2017-12-13 23:22:06      阅读:572      评论:0      收藏:0      [点我收藏+]

标签:gpo   tin   imp   上下   img   util   life   erb   除了   

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

异常:

技术分享图片

org.apache.catalina.LifecycleException: Failed to stop component [org.apache.catalina.webresources.StandardRoot@34ccd6d9]
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:233)
    at org.apache.catalina.core.StandardContext.resourcesStop(StandardContext.java:4995)
    at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5576)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:259)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:860)
    at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1040)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:860)
    at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1040)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:604)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
    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:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
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:395)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:208)
    at org.apache.catalina.webresources.StandardRoot.stopInternal(StandardRoot.java:759)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
    ... 21 more
十二月 13, 2017 7:24:34 下午 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:233)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:259)
    at org.apache.catalina.core.StandardContext.destroyInternal(StandardContext.java:5655)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:860)
    at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1040)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:860)
    at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1040)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:604)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879)
    at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:634)
    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:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
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:395)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:208)
    at org.apache.catalina.webresources.StandardRoot.stopInternal(StandardRoot.java:759)
    at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:221)
    ... 20 more

 

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

技术分享图片

 

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

标签:gpo   tin   imp   上下   img   util   life   erb   除了   

原文地址:http://www.cnblogs.com/chenyanlong/p/8034569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!