Java 由于“尝试了无效的生命周期转换”错误,无法在 Tomcat 7 上部署应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24905011/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot deploy application on Tomcat 7 Due to "invalid Lifecycle transition was attempted " error
提问by BohBah
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".
我有问题!我正在尝试在我的 tomcat server 7 安装上安装我的 webapp,但它一直说由于“尝试了无效的生命周期转换”而无法部署我的应用程序。
here's my catalina log error:
这是我的 catalina 日志错误:
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.
我什至尝试将“myapp”文件夹和“.war”手动删除到tomcat的webapp文件夹中(关闭tomcat后),但它没有解决任何问题。
i tryied also to redeploy my oldest .war files of the app but it won't start at all.
我还尝试重新部署我最旧的应用程序 .war 文件,但它根本无法启动。
Someone has got any ideas?
有人有什么想法吗?
thanks in advance
提前致谢
回答by Anonymous
Maybe your JRE is using different web server vendor servlet api (javax.servlet.*). Try to check your System classpath.
也许您的 JRE 使用了不同的 Web 服务器供应商 servlet api (javax.servlet.*)。尝试检查您的系统类路径。