Tomcat: One or more listeners failed to start
Found a simple way to identify the problem.
In your
WEB-INF/classes
directory of the application, make a new file:logging.properties
.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
- Restart tomcat.
Now you'll have the complete stacktrace and debug the problem from there on.
For a Maven Build
- Create a new
logging.properties
in thesrc/main/resources
directory of the module - 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
- Run
mvn clean install
- 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
.