I configured the SimpleMappingExceptionResolver to redirect to a generic error page for all Exceptions:
I placed an error.xhtm under /WEB-INF/error.xhtml. If I access the error.xhtml by entering the absolute URL in a browser window e.g http://localhost:8080/spring/error, the page is rendered as expected. However when the page is accesed by the Exception Resolver as result of an exception, nothing happens.
<property name="defaultErrorView" value="error" />
When I look at the network traffic e.g. using Fiddler I see the Request that looks as expected but the Response contains something like this:
HTTP/1.1 200 OK
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Date: Wed, 20 Jun 2012 09:49:45 GMT
<?xml version='1.0' encoding='UTF-8'?>
Can anybody tell my whats wrong?