From the course: Learning Apache Tomcat

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reading Tomcat logs

Reading Tomcat logs - Tomcat Tutorial

From the course: Learning Apache Tomcat

Start my 1-month free trial

Reading Tomcat logs

- [Instructor] There is another web app in the exercise files. This one is called stacktrace.war. I'm going to just deploy that now so sudo cp and I've copied it into the same directory as my vagrant file stacktrace.war and then the destination is var/lib/tomcat8/webapps/. So, that should be deployed now. And, let's take a look at a browser. Okay, we'll type in 192.168.33.10:8080/stacktrace/ and here you can see our error and there's a little bit of the stack trace, but I actually want to look at this in the logs, so I'll go back to my terminal. I'll just clear my screen and the command I want to use here is just vim and then var/log/tomcat8 and then it's a localhost then a dot and then it's actually just today's date. So, I'll open that file up, now here's our full stack trace, and if you aren't familiar with the java stack trace, these are really hard to read, I think at least when you first get started. The way that these work is that Java traces back to the original source of the…

Contents