Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check container log of tomcat?

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.

like image 773
Ben Avatar asked Apr 14 '16 08:04

Ben


People also ask

How do I view Tomcat logs?

The main Apache Tomcat configuration file is at /opt/bitnami/tomcat/conf/server. xml. Once Apache Tomcat starts, it will create several log files in the /opt/bitnami/tomcat/logs directory.

How do I find Tomcat Catalina logs?

By default, the catalina. out file is located in the logs directory under Tomcat's root directory. For example, /opt/netiq/idm/apps/tomcat/logs/catalina.

What are Tomcat logs?

The Apache Tomcat logs are an essential feature that allows sysadmins to view what is accessed and how the server handles the various resources. Although you can implement logging for the Java applications written for Tomcat, getting the internal webserver logs can be instrumental in troubleshooting.

How do I view Tomcat logs in Windows?

In Windows, you can change the Apache Tomcat log files using the configuration manager. Click on start and search “Configure Tomcat.” Navigate to the Logging Tab and select your logging level. NOTE: You may need to restart Apache Tomcat to apply the logging levels.


1 Answers

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.

like image 59
dan Avatar answered Sep 30 '22 09:09

dan