Hi,
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.Code:<bean class="org.springframework...SimpleMappingExceptionResolver"> <property name="defaultErrorView" value="error" /> </bean>
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:
Code:HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Pragma: no-cache Expires: Thu, 01 Jan 1970 00:00:00 GMT Cache-Control: no-cache Cache-Control: no-store X-Powered-By: JSF/2.0 X-Powered-By: JSF/2.0 Cache-Control: no-cache Content-Type: text/xml;charset=UTF-8 Content-Language: de-DE Content-Length: 76 Date: Wed, 20 Jun 2012 09:49:45 GMT <?xml version='1.0' encoding='UTF-8'?> <partial-response></partial-response>
Can anybody tell my whats wrong?
Best regards
Sebastian


Reply With Quote