title: Blank Page in JSF
body: <p>If my code throws an exception, sometimes - not everytime - the jsf presents a blank page. I´m using facelets for layout.
  A similar error were reported at this <a href="http://forums.sun.com/thread.jspa?messageID=10237827" rel="nofollow noreferrer">Sun forumn´s post</a>, but without answers.
  Anyone else with the same problem, or have a solution?
  ;)</p>
  
  <p>Due to some requests. Here follow more datails:</p>
  
  <p>web.xml</p>
  
  <pre><code> &lt;error-page&gt;
          &lt;exception-type&gt;com.company.ApplicationResourceException&lt;/exception-type&gt;
          &lt;location&gt;/error.faces&lt;/location&gt;
   &lt;/error-page&gt;
  </code></pre>
  
  <p>And the stack related to jsf is printed after the real exception:</p>
  
  <pre><code>####&lt;Sep 23, 2008 5:42:55 PM GMT-03:00&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;comp141&gt; &lt;AdminServer&gt; &lt;[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1222202575662&gt; &lt;BEA-101107&gt; &lt;[weblogic.servlet.internal.WebAppServletContext@6d46b9 - appName: 'ControlPanelEAR', name: 'ControlPanelWeb', context-path: '/Web'] Problem occurred while serving the error page.
  javax.servlet.ServletException: viewId:/error.xhtml - View /error.xhtml could not be restored.
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
      at weblogic.servlet.internal.ForwardAction.run(ForwardAction.java:22)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(Unknown Source)
      at weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:144)
      at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2053)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
  javax.faces.application.ViewExpiredException: viewId:/error.xhtml - View /error.xhtml could not be restored.
      at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:180)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
  </code></pre>
  
  <p>I´m using the jsf version <code>Mojarra 1.2_09</code>, <code>richfaces 3.2.1.GA</code> and  <code>facelets 1.1.13</code>.</p>
  
  <p>Hope some help :(</p>