1 17 package org.alfresco.web.app.servlet; 18 19 import java.io.IOException ; 20 21 import javax.faces.webapp.FacesServlet; 22 import javax.servlet.ServletException ; 23 import javax.servlet.ServletRequest ; 24 import javax.servlet.ServletResponse ; 25 import javax.servlet.http.HttpServletRequest ; 26 import javax.servlet.http.HttpServletResponse ; 27 28 import org.alfresco.web.app.Application; 29 import org.apache.commons.logging.Log; 30 import org.apache.commons.logging.LogFactory; 31 32 37 public class AlfrescoFacesServlet extends FacesServlet 38 { 39 private static Log logger = LogFactory.getLog(AlfrescoFacesServlet.class); 40 41 44 public void service(ServletRequest request, ServletResponse response) 45 throws IOException , ServletException 46 { 47 try 48 { 49 super.service(request, response); 50 } 51 catch (Throwable error) 52 { 53 String returnPage = ((HttpServletRequest )request).getRequestURI(); 54 55 Application.handleServletError(getServletConfig().getServletContext(), (HttpServletRequest )request, 56 (HttpServletResponse )response, error, logger, returnPage); 57 } 58 } 59 } 60 | Popular Tags |