You need to access your page using whatever mapping you gave to JSF in your web.xml file so JSF can process the page.
So for example, let's say you mapped Faces Servlet to *.faces, that means you cannot load MyJsp.jsp, you have to load MyJsp.faces, then JSF will process the page and show it to you. When you use MyJsp.jsp, JSF never gets a chance to process the page, so when the JSF tags try and run, they go "hey, what the heck... I don't have any of the information I need", and almost always spit out the "FacesContext not found" error you are seeing as the first sign of a wrong URL. |