Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF

 
sindhu sheela
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you create a Dynamic Web Project?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic