org.apache.catalina.LifecycleException:启动组件失败[StandardServer [8005]]启动时子容器失败 [英] org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]A child container failed during start

查看:8452
本文介绍了org.apache.catalina.LifecycleException:启动组件失败[StandardServer [8005]]启动时子容器失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在过去6-7小时努力找出我的Apache Tomcat服务器出了什么问题。在我的所有项目中, jdk版本已从1.8 切换到1.6。我没有丝毫的想法如何发生,为什么会发生。



为了解决 版本冲突 ,我通过帮助验证了Tomcat版本的编译版本和JVM是否相同来自此处



对于 具有相同路径错误 的多个上下文,我知道我需要删除 重复的上下文标签 server.xml 中。所以,首先我检查 服务器项目 (当您在Eclipse中添加Apache Tomcat Server时,它会自动创建),并且找不到。所以,我深入深入目录(Eclipse WorkSpace) metadata.plugins\org.eclipse.wst.server.core\tmp3\conf ,并删除了<在 here



现在,当我创建一个 新的动态Web项目 ,一切正常,我可以看到网页。但是,如果我尝试访问jdk发生变化的任何HTML,XHTML文件 那些旧项目 ,那么这个 org.apache.catalina .LifecycleException 继续弹出,服务器无法启动,因此这些 重复的上下文标签 每次都会继续建立我启动服务器。



我的旧Web应用程序项目似乎都没有工作。

  java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException:无法启动组件
[StandardEngine [Catalina] .StandardHost [localhost] .StandardContext
[/ EdBurns_ChrisSchalk]] .....
SEVERE:一个子容器在启动期间失败
java.util.concurrent。 ExecutionException:
org.apache.catalina.LifecycleException:无法启动组件
[StandardEngine [Catalina] .StandardHost [localhost]]
....
导致:java。 lang.RuntimeException:
注释中的意外元素值类型:0

所以终于如何阻止这些 上下文标签 server.xml 中一再建立。
其次,如何再次将这些旧的Web项目恢复到工作状态?
请妥善地解除这个问题。我迫切需要帮助。过去2年的一切都在这个m / c上为我工作。

解决方案

这样可以防止多个上下文标签根据每个请求创建



1) 停止服务器

2) 清理Tomcat的工作目录




I am struggling for the past 6-7 hrs trying to figure out what went wrong with my Apache Tomcat Server. In all of my projects, the jdk version got switched to 1.6 from 1.8. I don't have the slightest idea of how it did happen and why it happened.

To solve the version conflict, I verified whether compiled version and JVM of Tomcat version are same by taking help from here.

For multiple contexts with the same path error, I know i need to remove duplicate Context tags in server.xml. So, first I check in Servers project (which gets created itself when you add Apache Tomcat Server in Eclipse) and find none there. So, I delve deep into the directory(Eclipse WorkSpace) metadata.plugins\org.eclipse.wst.server.core\tmp3\conf and removed the duplicate Context tags over there, with help taken from here.

Now when i create a new Dynamic Web Project, everything works fine and I am able to see the web page. But if I try to access any of the HTML, XHTML files of those old project in which the jdk got changed, this org.apache.catalina.LifecycleException continues to pop up and the server fails to start, and consequently these duplicate Context tags continues to build up again and again every time i start the server.

None of my old Web application projects seems to work now.

java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext
[/EdBurns_ChrisSchalk]].....
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost]]
....
Caused by: java.lang.RuntimeException: Unexpected element value kind in 
annotation: 0

So finally how will i prevent these context tags being build up again and again there in server.xml. Secondly, how to get back those old web projects to working state again? Kindly relieve me of this problem . I desperately need help. Everything for the last 2 years used to work fine for me on this m/c.

解决方案

This will prevent multiple context tags to be created upon each request

1) Stop the server
2) Clean Tomcat's work directory

这篇关于org.apache.catalina.LifecycleException:启动组件失败[StandardServer [8005]]启动时子容器失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆