Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Log EL/JSP exceptions in tomcat

Tags:

java

jsp

tomcat

el

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?

like image 717
Sachin Verma Avatar asked Jul 16 '14 11:07

Sachin Verma


1 Answers

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
like image 131
Franz Deschler Avatar answered Oct 13 '22 10:10

Franz Deschler