I am working on exception handling in our Application. I used try catch blocks to catch the exceptions occured in my code and i also could handle the time out exceptions by
java.lang.RuntimeException: FacesContext not found
That will happen when you're requesting a JSP page containing JSF components through an URL which doesn't match the URL pattern of the FacesServlet
(who is the one responsible for creating the FacesContext
).
You need to change the error page location to match the URL pattern of the FacesServlet
as definited in web.xml
. Based on your duplicate questions on the subject, this is among others *.faces
, so setting the error page location as follows should do, exactly as I suggested in a comment on your first question on the subject.
/sc00/ErrorPage.faces