How to check container log of tomcat?

Ben picture Ben · Apr 14, 2016 · Viewed 48.7k times · Source

How do I check the container log of tomcat?

I get this error from the catalina.out log:

SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

But where can I find the "appropriate container log" that this log is referring to?

Thanks in advance.

Answer

dan picture dan · Jul 6, 2017

You'll find the referenced log file in the same directory containing the log referencing the other log file. With a default installation of Tomcat, the directory is $CATALINA_HOME/logs. The log file containing the information referenced will usually be the one named with the hostname on which Tomcat is running. On a simple server (e.g. development environment) this is localhost.<datestamp>.log. The additional error information can be found in this log file at the same timestamp as the noted reference in the referring log file.