Sachin Verma
Sachin Verma

Reputation: 3802

Log EL/JSP exceptions in tomcat

I want to log the exception caused by EL (parsing/coercing to different type/NPE) or such other errors in JSP files into my tomcat logs.

Those are not logged automatically. What do I need to log those exceptions?

Upvotes: 6

Views: 1763

Answers (1)

Franz Deschler
Franz Deschler

Reputation: 2574

I also struggled with this a long time. But I finally found out, that the jsp-errors are logged in the localhost.<date>.log file.

Tomcat creates several log files (maybe depending on your local configuration):

  • catalina.<date>.log
  • host-manager.<date>.log
  • localhost.<date>.log
  • localhost_access_log.<date>.log
  • manager.<date>.log

Upvotes: 3

Related Questions