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.
This helped to find the error log file and the actual error
sh bin/startup.sh ; tail -f logs/*.log;
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
.
In my case, i found logs in localhost.log file located in Tomcat_Home/logs. Wish this help u.
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
Now you'll have the complete stacktrace and debug the problem from there on.