Tomcat: One or more listeners failed to start

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.

For a Maven Build

  1. Create a new logging.properties in the src/main/resources directory of the module
  2. Add these entries into that new file
org.apache.catalina.core.ContainerBase.[Catalina].level=INFO
org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler
  1. Run mvn clean install
  2. Restart Tomcat

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.

Tags:

Java

Tomcat