Hi,
I'm running Spring 3.0.5 on a Tomcat 6 (Windows Machine). I've found a problem/misconfiguration on Spring/Tomcat Error-Handling.
When an Exception occurs in a Spring MVC Controller, Tomcat handles the exception by redirecting the request to an error page. (configured in web.xml):
The problem is that in the error handling conroller, the SecurityContext.getContext().getAuthentication() is returning null. However if I navigate to another page, it returns the Authentication object as expected.Code:<error-page> <exception-type>java.lang.Throwable</exception-type> <location>/error.html</location> </error-page>
Any ideas?
Thanks-


Reply With Quote