Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the "server log" for Tomcat when running externally from IntelliJ Ultimate?

When running my Vaadin app on Tomcat 8.5 externally from IntelliJ Ultimate 2017.2 on macOS Sierra, I get an error message:

Artifact timepiece-ui:war exploded: Error during artifact deployment. See server log for details.

➠ Where is this ‘server log’?

When I look in apache-tomcat-8.5.20 > logs, the folder is empty. Indeed, I cannot find any trace of my app being deployed within apache-tomcat-8.5.20.

➠ Is there some other place where IntelliJ+Tomcat is placing my app and the server logs?

screen shot of "Run/Debug Configurations" > "Logs" dialog box

screen shot of "Application Servers" dialog with Apache Tomcat configuration displayed

like image 564
Basil Bourque Avatar asked Aug 14 '17 02:08

Basil Bourque


People also ask

How do I find Tomcat server logs?

Each server instance contains its own Catalina.This file is located in the logs directory below the Tomcat root directory. This log is the system's output log, which also consists of standard error messages. These files are saved daily (MM-DD-YYYY) with the date appended to the name of the data.

Where are Tomcat logs on Windows?

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

What is Tomcat Catalina log?

Catalina Log: This is the global log. It records information about events such as the startup and shutdown of the Tomcat application server, the deployment of new applications, or the failure of one or more subsystems.


2 Answers

IntelliJ displays Tomcat logs

The accepted Answer by CrazyCoder is correct.

In addition, as commented by Jerry06, IntelliJ Ultimate does automatically display the logs as tabs in the server output pane.

The files backing those logs are stored in the CATALINA_BASE as explained in the other Answer.

screen shot of server output panel showing (a) tabs for logs, (b) 'CATALINA_BASE' path logged

like image 109
Basil Bourque Avatar answered Oct 16 '22 18:10

Basil Bourque


IntelliJ IDEA shows the log files you configure in the Run/Debug configuration settings as the separate tabs in the Run or Debug tool window.

For Tomcat the actual logs are placed under CATALINA_BASE/logs directory. The value of the CATALINA_BASE set by IntelliJ IDEA will be printed in the console of the Run or Debug tool window.

You can also find the log files under idea.system.path/tomcat/<configuration name>/logs/.

like image 29
CrazyCoder Avatar answered Oct 16 '22 17:10

CrazyCoder