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 t开发者_开发知识库his stage don't plan to use) any log library (such as log4j), just throwing an exception and trying to see it if possible.
Appreciate!
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.
精彩评论