title: FullAjaxExceptionHandler doesnt redirect to error page on omnifaces 1.7
body: <p>I have a problem with the FullAjaxExceptionHandler on ajax requests using the Omnifaces.</p>
  
  <ul>
  <li>Environment:</li>
  <li>Tomcat 7.0.50</li>
  <li>Mojarra 2.1.27</li>
  <li>Omnifaces 1.7</li>
  </ul>
  
  <p>I declared the error pages in my web.xml:</p>
  
  <pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;error-page&gt;
    &lt;exception-type&gt;java.lang.Throwable&lt;/exception-type&gt;
    &lt;location&gt;/error/errorPage.jsf&lt;/location&gt;
  &lt;/error-page&gt;
  &lt;filter&gt;
    &lt;filter-name&gt;facesExceptionFilter&lt;/filter-name&gt;
    &lt;filter-class&gt;org.omnifaces.filter.FacesExceptionFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
    &lt;filter-name&gt;facesExceptionFilter&lt;/filter-name&gt;
    &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>And I declared the exception handler on faces-config.xml</p>
  
  <pre><code>&lt;factory&gt;
      &lt;exception-handler-factory&gt;org.omnifaces.exceptionhandler.FullAjaxExceptionHandlerFactory&lt;/exception-handler-factory&gt;
  &lt;/factory&gt;
  </code></pre>
  
  <p>With this environment the error page is shown correctly when throw an exception on a @PostConstruct method on a non-ajax request.
  When I throw an exception on an ajax request, the error page is not shown, but I see this log message.</p>
  
  <pre><code>FullAjaxExceptionHandler: An exception occurred during processing JSF ajax request. Error page '/error/errorPage.jsf' will be shown.
  </code></pre>
  
  <p>After a while, I see another log message and the browser opens the "hardcoded error page".</p>
  
  <pre><code>FullAjaxExceptionHandler: Well, another exception occurred during rendering error page '/error/erroPage.jsf'. Trying to render a hardcoded error page now.
  javax.faces.FacesException: org.apache.jasper.JasperException: /error/errorPage.jspx (line: 11, column: 39) Attribute "xmlns:h" must be declared for element type "html".
  </code></pre>
  
  <p>It seems that the JSP is trying to render the JSF page.
  If I change the error page declaration to:</p>
  
  <pre><code>&lt;error-page&gt;
    &lt;exception-type&gt;java.lang.Throwable&lt;/exception-type&gt;
    &lt;location&gt;/error/errorPage.jspx&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>The ajax request redirects correctly to my page, but the non-ajax request doesn't redirect anymore to the error page.</p>
  
  <p>So, is this a configuration problem, environment problem or a bug on Omnifaces?</p>
  
  <p>Thanks in advance.</p>