Alexander Abramovich
Alexander Abramovich

Reputation: 11458

Where to inspect servlet exceptions in tomcat

A very simple question (pardon) - if a servlet throws ServletException and it runs in Tomcat - where can I inspect the exception details? Tried to look under logs but nothing is there. I probably miss something very obvious. I do not use (and at this stage don't plan to use) any log library (such as log4j), just throwing an exception and trying to see it if possible.

Appreciate!

Upvotes: 2

Views: 4642

Answers (1)

BalusC
BalusC

Reputation: 1109735

Depends. They're by default logged to Tomcat/logs/[hostname].[timestamp].log. However, if you run Tomcat from inside an IDE like Eclipse, then it will take over the logging and it'll end up in the IDE console without being written to log file.

Upvotes: 2

Related Questions