This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
wood burning stoves
 
subject: Error: No faces context?!
 
Similar Threads
Tomahawk Error
Simple JSF applicaiton - Error
ELResolvers not registered with the JSP container
no faces context
Cannot run the simplest JSF app on JBoss