Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes exception in jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "exception in jsf" Watch "exception in jsf" New topic
Author

exception in jsf

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi i am new to JSF...i try to run index.jsp in eclipse..i get below exception..

please any one can tell me the solution

---------------------------------------------------------------
javax.servlet.ServletException: Cannot find FacesContext
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.index_jsp._jspService(index_jsp.java:94)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-------------------------------------------

Thanks & Regards,
seetharaman.v
Dwijen Bhattacharjee
Greenhorn

Joined: Mar 31, 2008
Posts: 26
try index.faces
or
change the .faces to .jsp in faces.config file
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

thanks Dwijen,


but where i have to change in face-config.xml...there is nothing
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi ,


i got that...i think in web.xml(url-pattern).thanks a lot ;)
Pankaj Anghan
Greenhorn

Joined: May 28, 2008
Posts: 1
I also faced the same problem.
in faces-config.xml use this servlet mapping.

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception in jsf