• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
xju jhgu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this error :






my index.jsp (error in line 24, I think it because other different errors with crazy changes by my own... :P)





my web.xml




and my faces-config.xml




I lost a week looking for a solution, but I didn't found nothing. Help me a little, please. If I delete all references to JSF code, the page "works"...
 
K. Tsang
Bartender
Posts: 3604
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I delete all references to JSF code, the page "works"...


What do you mean by that? Do you have any managed beans?

I noticed you have your JDBC connection stuff in the JSP page (really bad practice). The JSP page is supposed to be for display (the view).

 
xju jhgu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K. Tsang wrote:
If I delete all references to JSF code, the page "works"...


What do you mean by that? Do you have any managed beans?

I noticed you have your JDBC connection stuff in the JSP page (really bad practice). The JSP page is supposed to be for display (the view).



I mean that the page don't give any error, but when I have JSF code the page give errors
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"xju jhgu",

We don't have many rules here at the JavaRanch, but we do insist that you use your Real Name and not some sort of "handle" or obvious alias. If you're not sure about this, see
http://www.javaranch.com/name.jsp .

I would have answered your question already, but I was waiting for someone to explain to me how a name like "xji jhgu" might be valid. I don't answer questions until people fix their display names to conform to our basic rules.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!