title: Empty custom error page (JSF)
body: <p>Hello I hope this wasnt asked before, I didnt find anything that helped me...</p>
  
  <p>I have an custom errorpage (error.xhtml) containing this:</p>
  
  <pre><code>&lt;h2&gt;Error!&lt;/h2&gt;
  Message: #{pfExceptionHandler.message} &lt;br/&gt;
  StackTrace: &lt;h:outputText value="#{pfExceptionHandler.formattedStackTrace}" escape="false" /&gt; &lt;br /&gt;
  &lt;p&gt;The error message is: #{requestScope['javax.servlet.error.message']}&lt;/p&gt;
  ${requestScope['javax.servlet.error.message']}
  </code></pre>
  
  <p>These are all variants I found here, but neithertheless the htmloutput is:</p>
  
  <pre><code>&lt;h2&gt;Error!&lt;/h2&gt;
  Message:  &lt;br /&gt;
  StackTrace:  &lt;br /&gt;
  &lt;p&gt;The error message is: &lt;/p&gt;
  </code></pre>
  
  <p>My faces-config.xml contains this (for primeface ajax exception handler like in showcase):</p>
  
  <pre><code>&lt;application&gt;
      &lt;el-resolver&gt;org.primefaces.application.exceptionhandler.PrimeExceptionHandlerELResolver&lt;/el-resolver&gt;
  &lt;/application&gt;
  
  &lt;factory&gt;
      &lt;exception-handler-factory&gt;org.primefaces.application.exceptionhandler.PrimeExceptionHandlerFactory&lt;/exception-handler-factory&gt;
  &lt;/factory&gt;
  </code></pre>
  
  <p>And my web.xml contains this:</p>
  
  <pre><code>&lt;error-page&gt;
      &lt;exception-type&gt;java.lang.Throwable&lt;/exception-type&gt;
      &lt;location&gt;/error.xhtml&lt;/location&gt;
  &lt;/error-page&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;org.apache.myfaces.ERROR_HANDLING&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;org.apache.myfaces.ERROR_HANDLING&lt;/param-name&gt;
      &lt;param-value&gt;false&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>But I also have the same result. What am I doing wrong?</p>
  
  <p>EDIT: For testing this I disable MySql and I see in logfile that there was an SQLException thrown.</p>
  
  <p>Kind regards</p>