wood burning stoves 2.0*
The moose likes JSF and the fly likes Error: No faces context?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Error: No faces context?!" Watch "Error: No faces context?!" New topic
Author

Error: No faces context?!

Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
Hello,

Does anybody know what I am doing wrong or what I am missing.

I am deploying the Greg Bolinger example (JSF tutorial part I) on a JBOSS 4.0.3RC1. But when I address the login.jsp I am getting an error: "No Faces context!". I tracked it down and it is an exception that is thrown in the Apache JSF implementation when "FacesContext.getCurrentInstance()" return null.

I guess it should get initialized in some way. I have added the apache SessionContext listener to my web.xml file but still I get the error. Anybody got a clue?
Manuel Moons
Ranch Hand

Joined: Mar 05, 2002
Posts: 229
Whoops, solved it, looks like I forgot to use the /faces context when trying to open my page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: No faces context?!