In my web.xml, I have
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/WEB-INF/errorpages/expired.xhtml</location>
</error-page>
But if a ViewExpiredException is thrown (Non - AJAX), it ends up in a 404 - Not Found basic page with an url /WEB-INF/errorpages/expired.xhtml. If I change the location to /expired.xhtml (and copy the file expired.xhtml under webapp directory) it works fine and the url is /expired.xhtml after the ViewExpiredException is thrown.
Well, the file expired.xhtml should be in WEB-INF directory. Why is it not working with the WEB-INF path ?