SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException:

前端 未结 7 1836
走了就别回头了
走了就别回头了 2021-01-22 00:51

i am getting the following error. I searched many forums which didnt help me to resolve this.So, can anyone please look into it and help me in resolving this?

I am not u

相关标签:
7条回答
  • 2021-01-22 01:29

    Just check web.xml, any changes in servlet mapping will result in that kind of problem. try running another application which is perfect, while doing that make sure tomcat in server console is empty(no drop down if their delete it) then run

    0 讨论(0)
  • 2021-01-22 01:31

    Adding the commons-logging jar into the "lib" folder,worked for me.

    Here's the download link: https://commons.apache.org/proper/commons-logging/download_logging.cgi

    Hope this helps

    0 讨论(0)
  • 2021-01-22 01:37

    Tried all sorts, but what worked from me was removing all references to javax from the the POM; deleting javax jars from Maven repository and then re-adding back to the POM. I think one of the jars was corrupt.

    0 讨论(0)
  • 2021-01-22 01:44

    Just check your web.xml for any typo.

    Or verify whether your servlet-name node in web.xml and @WebServlet("/abc") in servlet are same.

    I fix this issue by above change,

    0 讨论(0)
  • 2021-01-22 01:45

    verify web.xml.

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        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">
        <display-name>Admin</display-name>
        <servlet>
            <servlet-name>ServletName</servlet-name>
            <servlet-class>ServletName</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>AdminServletNameServlet</servlet-name>
            <url-pattern>/ServletUrl</url-pattern>
        </servlet-mapping>
    
    </web-app>
    
    0 讨论(0)
  • 2021-01-22 01:47

    web.xml is the culprit. I had 2 controllers mapped to the same URL pattern. And this was creating issue. Server started as soon as I changed the URL pattern mapping of one of the controllers.

    0 讨论(0)
提交回复
热议问题