This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Error" Watch "JSF Error" New topic

JSF Error

Shahir Deo
Ranch Hand

Joined: Mar 19, 2013
Posts: 78

Hi Guys.
while running a JSF Application i came across a error:

java.lang.RuntimeException: FacesContext not found

How can i solve this?

Knowledge enlivens the soul.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

The FacesContext does not exist as an independent object. You can only reference it in code that is directly called by the FacesServlet. Independent servlets and JSPs will fail, as will many of the non-J2EE infrastructure listeners.

Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the JavaRanch Style Guide.
subject: JSF Error
Similar Threads
Links in dynamic form
JSF... My post-JavaOne impressions.
Help with Form Submitting Error
how to handle errors in JSF
unable to instantiate tag f:view