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

  • 相关阅读:
    html常用标签_new
    Nginx缓存
    购物车
    css的属性选择
    前端基础之css
    htm基础知识
    TypeScript(1)为什么需要TypeScript
    Electron
    Ant Design
    Umi
  • 原文地址:https://www.cnblogs.com/justuntil/p/7419821.html
Copyright © 2011-2022 走看看