Tomcat: One or more listeners failed to start

后端 未结 4 1514
面向向阳花
面向向阳花 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 13:45

    This helped to find the error log file and the actual error

    sh bin/startup.sh ; tail -f logs/*.log;
    
    0 讨论(0)
  • 2020-12-25 13:58

    Adding the logging.properties file didn't do anything for me. Instead found the stack trace of my error in tomcat/logs/localhost.[YYYY-MM-DD].log.

    0 讨论(0)
  • 2020-12-25 14:04

    In my case, i found logs in localhost.log file located in Tomcat_Home/logs. Wish this help u.

    0 讨论(0)
  • 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.

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