This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: java.lang.RuntimeException: Cannot find FacesContextwolfgangknauf Jun 1, 2007 9:18 AM (in response to ruchi123456)Hi Ruchika, 
 I encountered the same problem with Suns RI.
 The problem is: the faces context is initialized the first time you make a call to the faces servlet. This does not happen if yo call the page directly.
 Solution 1:
 browse to "welcome.faces" (or "welcome.jsf", depending on the faces url pattern) instead of "welcome.jsp".
 Solution 2:
 build a plain JSP index page which links to your faces page. This index page should contain this link:<a href="welcome.faces">Start page</a> 
 Solution 3:
 the index page contains a redirect to your jsf page:<%@ page session="false" language="java" contentType="text/html; charset=ISO-8859-1"%> <% response.sendRedirect("geometricmodel.faces"); %>
 Hope this helps
 Wolfgang
- 
        2. Re: java.lang.RuntimeException: Cannot find FacesContextjavatwo Jan 13, 2008 4:15 AM (in response to ruchi123456)JBoss 4.2.2 myfaces, 
 I got the same problem with explicit page index.jsf with correct servlet mapping.
 
     
    