转自:http://blog.sina.com.cn/s/blog_4e1e357d0102v55c.html

控制台报错:

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 11 more


解决办法,把web.xml里面配置的version从3.0改成2.5

 


xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
>>

改成


xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>也可以解决tomcat启动报上面异常的问题,但是目前没有测试别的功能是否会被影响,妥当的就是先删掉那些包把,第二种在测试下

相关文章:

  • 2021-06-22
  • 2021-04-17
  • 2021-04-16
  • 2021-10-09
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-12-06
  • 2021-11-27
相关资源
相似解决方案