简体   繁体   中英

Cannot deploy application on Tomcat 7 Due to “invalid Lifecycle transition was attempted ” error

i've got aproblem! i'm trying to install my webapp on my tomcat server 7 installation but it keeps on saying that it cannot deploy my app due to "invalid Lifecycle transition was attempted".

here's my catalina log error:

org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted       ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp]] in state [STARTED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.destroyInternal(ContainerBase.java:1234)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:593)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:822)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:765)
at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:910)

I've tryied even to delete manually "myapp" folder and ".war" into tomcat's webapp folder (after turning off tomcat) but it doesn't resolve anything.

i tryied also to redeploy my oldest .war files of the app but it won't start at all.

Someone has got any ideas?

thanks in advance

Maybe your JRE is using different web server vendor servlet api (javax.servlet.*). Try to check your System classpath.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM