<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to configure Icefaces to show my error page when exception occurs during page rendering "]]></title>
		<link>http://www.icefaces.org/JForum/posts/list/12.page</link>
		<description><![CDATA[Latest messages posted in the topic "How to configure Icefaces to show my error page when exception occurs during page rendering "]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to configure Icefaces to show my error page when exception occurs during page rendering </title>
				<description><![CDATA[ Hi,

My team is developing an web-application with Spring-hibernate-Icefaces framework. We are seeking a solution for rendering process exception.

<b>Scenario:</b>
During rendering the page for a *.jsfx file, some exception occurs in backing bean method. 

<b>Expected Result:</b> 
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. 

<i>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.</i>

And I found the following error in my error log:

<i> ...
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)
               ...
</i>

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


]]></description>
				<guid isPermaLink="true">http://www.icefaces.org/JForum/posts/list/8980.page#37341</guid>
				<link>http://www.icefaces.org/JForum/posts/list/8980.page#37341</link>
				<pubDate><![CDATA[Fri, 4 Jul 2008 05:40:34]]> GMT</pubDate>
				<author><![CDATA[ wenwei]]></author>
			</item>
	</channel>
</rss>