Author: ips
Date: 2011-01-04 17:30:20 -0500 (Tue, 04 Jan 2011)
New Revision: 1014
Modified:
branches/AdminConsole_EAP_5_1/core/src/main/webapp/WEB-INF/exceptions.xml
Log:
handle ViewExpiredExceptions gracefully (
https://issues.jboss.org/browse/EMBJOPR-356)
Modified: branches/AdminConsole_EAP_5_1/core/src/main/webapp/WEB-INF/exceptions.xml
===================================================================
--- branches/AdminConsole_EAP_5_1/core/src/main/webapp/WEB-INF/exceptions.xml 2011-01-04
22:27:18 UTC (rev 1013)
+++ branches/AdminConsole_EAP_5_1/core/src/main/webapp/WEB-INF/exceptions.xml 2011-01-04
22:30:20 UTC (rev 1014)
@@ -1,6 +1,6 @@
<!--
~ Embedded Jopr Project
- ~ Copyright (C) 2006-2009 Red Hat, Inc.
+ ~ Copyright (C) 2006-2011 Red Hat, Inc.
~ All rights reserved.
~
~ This program is free software; you can redistribute it and/or modify
@@ -30,6 +30,13 @@
</redirect>
</exception>
+ <!-- Session Expiration Exceptions -->
+ <exception class="javax.faces.application.ViewExpiredException">
+ <redirect view-id="/login.xhtml">
+ <message>The session has expired. Please log in again.</message>
+ </redirect>
+ </exception>
+
<!-- Catch-all for all other Exceptions-->
<exception class="java.lang.Exception">
<end-conversation/>