File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF" Watch "JSF" New topic
Author

JSF

sindhu sheela
Greenhorn

Joined: May 20, 2008
Posts: 26
Hi,

I want to create a project in eclipe galileo - JSF framework.
When i tried to create one , i'm getting FacesContex not found exception.
any ref links for the same also would be helful

Thanks in advance
sindhu sheela
Greenhorn

Joined: May 20, 2008
Posts: 26
tHIS IS THE EXCEPTION IM GETTING

org.apache.jasper.JasperException: java.lang.RuntimeException: FacesContext not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Mahesh Panchananam
Greenhorn

Joined: Jun 30, 2011
Posts: 18
This often occurs in JSF implementation.
Steps:
- Define the controller required in web.xml
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
- make sure you have defined all the objects (beans) that are being used to manage.
- I ll attach a sample asap.

Rgds
Mahesh PS
Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 198
Without any info of your setup this is almost impossible to solve.
Show at least your web.xml and faces-config.xml files to us
Dieter Quickfend
Bartender

Joined: Aug 06, 2010
Posts: 543
    
    4

Did you create a Dynamic Web Project?


Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF