Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error: No faces context?!

 
Manuel Moons
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whoops, solved it, looks like I forgot to use the /faces context when trying to open my page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic