aspose file tools*
The moose likes JSF and the fly likes java.lang.RuntimeException: FacesContext not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "java.lang.RuntimeException: FacesContext not found" Watch "java.lang.RuntimeException: FacesContext not found" New topic
Author

java.lang.RuntimeException: FacesContext not found

sonia pandit
Ranch Hand

Joined: Apr 19, 2008
Posts: 137
I have a jsf application, that I deployed to Tomcat 6.0. I am using JSF 1.2, MyFaces 1.2, Trinidad 1.2.
I am getting this error when I point my browser to the webpage.

Any help is appreciated.

Thanks,

Sonia
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
am also newbie , but try to include this library jsf-facelets-1.1.14.jar (add it to lib folder of your web application) , i hope that it works for you
sonia pandit
Ranch Hand

Joined: Apr 19, 2008
Posts: 137
Am not using facelets. Jsf and myfaces are already in the lib directory.

Thanks,

Sonia
anitha meena
Ranch Hand

Joined: Oct 22, 2007
Posts: 40
try to add jsf libraries as referenced libraries ( from build path) and as web app libraries ( in lib folder of the web application).............
sonia pandit
Ranch Hand

Joined: Apr 19, 2008
Posts: 137
It is fixed. Just for the benefit of other readers who might have the same problems;
I had to recreate another demo, add the proper libraries and remove libraries from the lib directory,
not it works like a charm. I kept the MyFaces libraries and removed jsf libraries.

Thanks,

Sonia
 
Don't get me started about those stupid light bulbs.
 
subject: java.lang.RuntimeException: FacesContext not found