I am have an error page mapping in my web.xml file which retrieves javax.servlet.error.exception from the request scope to log the stack trace. I am seeing numerous errors which show null for a stack trace. Where is this attribute supposed to be set and why is it not happening? I am using Spring 3.0.5 and Tomcat 7.0.
It's not an exception name. It's a key used to find where a stack trace is set in the request. RequestDispatcher.ERROR_EXCEPTION = "javax.servlet.error.exception";
When an exception is thrown by a web application, it's stack trace is supposed to be stored there.