Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Error

 
Shahir Deo
Ranch Hand
Posts: 80
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys.
while running a JSF Application i came across a error:

java.lang.RuntimeException: FacesContext not found

How can i solve this?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic