• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

faces Context Problem

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic