From 06114b7e2f5acdc670826017094a0bc12ecac425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garcia=20Nu=C3=B1ez?= Date: Fri, 20 Dec 2019 00:19:58 +0100 Subject: [PATCH] =?UTF-8?q?Redirecci=C3=B3n=20de=20excepciones=20a=20la=20?= =?UTF-8?q?p=C3=A1gina=20de=20error.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sources/MyHealth/docroot/WEB-INF/web.xml | 37 ++++++++++++---------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/1.sources/MyHealth/docroot/WEB-INF/web.xml b/1.sources/MyHealth/docroot/WEB-INF/web.xml index 5b5b57c..a11b61e 100644 --- a/1.sources/MyHealth/docroot/WEB-INF/web.xml +++ b/1.sources/MyHealth/docroot/WEB-INF/web.xml @@ -30,8 +30,6 @@ primefaces.FONT_AWESOME true - - primefaces.THEME #{sessionPreferences.currentTheme} @@ -45,35 +43,42 @@ - - Faces Servlet - /faces/* - - - Faces Servlet - *.jsf - - - Faces Servlet - *.faces - Faces Servlet *.xhtml + + + facesExceptionFilter + org.omnifaces.filter.FacesExceptionFilter + + + + + facesExceptionFilter + /* + + + javax.faces.application.ViewExpiredException /error.xhtml?type=expired java.sql.SQLException + org.hibernate.exception.GenericJDBCException + java.net.ConnectException /error.xhtml?type=sql java.lang.RuntimeException /error.xhtml?type=runtime + + java.net.ConnectException + /error.xhtml?type=sql + 500 /error.xhtml @@ -84,12 +89,12 @@ - 1 + 30 - home.xhtml + /home.xhtml