title: ViewExpiredException shown in java.lang.Throwable error-page in web.xml
body: <p>I'm working on a JSF web application in which I need to bring up a "Session Expired" page if the view expires, but a general technical error page for all others.  The application only goes to the technical error page when I trigger the exception.  Here's the error-page definitions:</p>
  
  <pre><code>&lt;error-page&gt; 
      &lt;exception-type&gt;javax.faces.application.ViewExpiredException&lt;/exception-type&gt; 
      &lt;location&gt;/jsps/utility/sessionExpired.jsp&lt;/location&gt; 
  &lt;/error-page&gt; 
  &lt;error-page&gt; 
      &lt;exception-type&gt;java.lang.Throwable&lt;/exception-type&gt; 
      &lt;location&gt;/jsps/utility/technicalError.jsp&lt;/location&gt; 
  &lt;/error-page&gt; 
  &lt;error-page&gt;
      &lt;error-code&gt;500&lt;/error-code&gt;
      &lt;location&gt;/jsps/utility/technicalError.jsp&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>I removed the technicalError.jsp error page elements and it worked fine, but when I put them back I can't get to the sessionExpired.jsp page.  How do I tell the web container the order to evaluate these tags so that the right page comes up?  Thanks.</p>