This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

faces Context Problem  RSS feed

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi flocks,

I am doing an application in jsf, in my header i configured my main label names. if i move mouse to on that labels it will show the list of pages what ever i have in that module.

when i run my application first Login page is opening (includeing header and footer)if move mouse to on that labels in is showing my pages names and i will select any page from that list it is not showing that page,

that time i am getting this error message

here i don't know about faces context, where i need to write this context and how to map my Login page to remaining pages ,Please help me.

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext
root cause

java.lang.RuntimeException: Cannot find FacesContext
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1 logs.


---------------------------------------------------------------------------
Sun Java System Application Server 9.1


and here i am adding my web.xml




Thanks & Regards,
Vardhan
[ August 28, 2008: Message edited by: vardhan reddy ]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vardhan reddy:
java.lang.RuntimeException: Cannot find FacesContext


Have you considered Googling it? This is a very common problem among the new-to-JSF users.
http://www.google.com/search?q=java.lang.RuntimeException%3A+Cannot+find+FacesContext

Summarized it just means that the requested URL doesn't match the url-pattern of the FacesServlet mapping. So the request isn't been passed through the FacesServlet which should create the FacesContext. So the JSF components in your JSP page are complaining that the FacesContext cannot be found.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!