Tomcat: One or more listeners failed to start

后端 未结 4 1515
面向向阳花
面向向阳花 2020-12-25 13:30

I have an application which is not starting up after I added/upgraded some dependencies. It logs an error saying

SEVERE: One or more listeners failed to start.

4条回答
  •  执笔经年
    2020-12-25 14:07

    Found a simple way to identify the problem.

    1. In your WEB-INF/classes directory of the application, make a new file: logging.properties.

    2. Add the following in that file:

    org.apache.catalina.core.ContainerBase.[Catalina].level=INFO
    org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler
    
    1. Restart tomcat.

    Now you'll have the complete stacktrace and debug the problem from there on.

提交回复
热议问题