zoukankan      html  css  js  c++  java
  • tomcat 启动报错 解决办法 A child container failed during

    控制台报错:

    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"
    id="WebApp_ID" version="3.0">

    改成


    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"
    id="WebApp_ID" version="2.5">
    也可以解决tomcat启动报上面异常的问题,但是目前没有测试别的功能是否会被影响,妥当的就是先删掉那些包把,第二种在测试下

  • 相关阅读:
    sharepoint 2013 configure my site
    格式化xml
    斗罗大陆
    spring的beans.xml的配置
    jdom学习:读取xml文件
    java中加载xml文件方法
    struts2中IOC控制反转应用
    struts2.xml的配置与技巧
    struts2中的路径问题
    struts.xml详细配置
  • 原文地址:https://www.cnblogs.com/justuntil/p/7419821.html
Copyright © 2011-2022 走看看