wenwei
Joined: 02/07/2008 00:00:00
Messages: 1
Offline
|
Hi,
My team is developing an web-application with Spring-hibernate-Icefaces framework. We are seeking a solution for rendering process exception.
Scenario:
During rendering the page for a *.jsfx file, some exception occurs in backing bean method.
Expected Result:
A customized error page is displayed in the web browser
I tried to add the error page in web.xml
<error-page>
<exception-type>javax.faces.FacesException</exception-type>
<location>/error5.jsp</location>
</error-page>
but it did not work. The exception messages were displayed in the client's web browser.
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.faces.FacesException: Problem in renderResponse: /searchmain.jspx @38,86 timeZone="#{searchMainBean.timeZone}" javax.faces.FacesException: Can't set managed bean property: 'referenceMasterDAO'.
com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:329)
...
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
And I found the following error in my error log:
...
SEVERE: Exception Processing ErrorPage[exceptionType=javax.faces.FacesException, location=/error5.jsp]
org.apache.jasper.JasperException: getOutputStream() has already been called for this response
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:383)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
...
What is the correct configuration so that my customized error page will be displayed in the client's web page instead of those exception messages?
FYI. We are using Icefaces 1.6.2.
Thank in advance
|