« Return to Thread: Cannot find FacesContext

Congrats - <EOM> Re: [nbusers] Cannot find FacesContext

by wbossons :: Rate this Message:

Reply to Author | View in Thread

Russell Bateman wrote:
I reached a solution by paying closer attention to Geary & Horstmann, but more so by experimentation. It turns out what was misleading was that they talked up three different web.xml vs. path vs. files which was misleading. After trying combinations of all of those, this is the (first) one that worked:

http://www.windofkeltia.com/j2ee/nb-tutorial/sources.html

I'm now working on the Kito Mann example to see if I learned anything and can get it working.

Thank you for your very useful help,

Russ


Wendy Bossons wrote:
What is exactly is the url to your jsp? It's very possibly the issue ...

There are two possibilities to try in the faces-configuration.  My faces-config is configured to read /faces/* in the servlet mapping.  In this case, the /faces/ must be present in the path between the context and the index.jsp, otherwise the faces context will not be found, e.g. http://myserver/mycontext/index.jsp must be http://myserver/mycontext/faces/index.jsp

In your case -- *.faces, the .faces extension must be used, instead of .jsp, e.g. http://myserver/mycontext/index.faces.  Otherwise the faces servlet will not be accessed.

..\Wendy


-- 
..\Wendy
Wendy Bossons
Senior User Interface Developer
Harvard-MIT Data Center
Office Phone:  617-384-5701
Email: wbossons <at> hmdc.harvard.edu 


-- 
..\Wendy
Wendy Bossons
Senior User Interface Developer
Harvard-MIT Data Center
Office Phone:  617-384-5701
Email: wbossons <at> hmdc.harvard.edu 

 « Return to Thread: Cannot find FacesContext

LightInTheBox - Buy quality products at wholesale price