Hi List,
I noticed that my error handling won't work if the error (exception)
occurs outside an action. For example such an exception
Servlet.service() for servlet jsp threw exception
javax.faces.FacesException: Exception while calling encodeEnd on :
{Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId:................
This will not caught by my error handling mechanism. Instead the
exception message, i posted above, will displayed on the page at the
position it occurred. Also if something went wrong in my controller
outside of an action my error page is not being displayed. Is there
something that causes that only Exceptions in actions will be catched???.
Here the web.xml definitions.
<context-param>
<param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
<param-value>false</param-value>
</context-param>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/aisdcl/pages/general/errorpages/exception.jsp</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/aisdcl/pages/general/errorpages/httpError.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/aisdcl/pages/general/errorpages/httpError.jsp</location>
</error-page>
.....
.....
.....
Thx for suggestions
--
Johannes Homuth
-----------------------------------
SOURCEPARK Gesellschaft
für Softwareentwicklung mbH
Johannes Homuth
Helmholtzstr. 2-9 Gebäude M
10587 Berlin
Tel: +49 (0)30/398 068 316
Fax: +49 (0)30/398 068 39
e-mail: [EMAIL PROTECTED]
www: www.sourcepark.de
-----------------------------------
Sitz der Gesellschaft: Berlin
Handelsregister: Amtsgericht Berlin-Charlottenburg, HRB 80254
Geschäftsführer: Matthias Barmeier, Harald Dürr
-----------------------------------
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte
Informationen enthalten. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
E-Mail ist nicht gestattet.