'Cannot find FacesContext' on a clean "JSF project after adding new bean
843844Aug 20 2007 — edited Aug 20 2007Hi,
I am using:
"
Product Version: NetBeans IDE 6.0 M10 (build 200706281431)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_AU (nb)
"
If I
- create a new web project selecting "Java Server Faces" + "jMaki Ajax Framework"
- deploy;
my application works. . (just default page and some jmaki controls dropped)..
Now If i right click on projects tab and add new "Visual Web Application Bean" then the same page gives me the following error when I try to call up the page:
StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1811)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1628)
at org.apache.jsp.welcomeJSF_jsp._jspx_meth_f_view_0(welcomeJSF_jsp.java from :107)
at org.apache.jsp.welcomeJSF_jsp._jspService(welcomeJSF_jsp.java from :79)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.apache.catalina.core.ApplicationFilterChain.servletService
<snip>
I am unable to understand If I am doing something wrong.. could anyone please help.
I am a learning and am trying to follow the tutorial at "http://blogs.sun.com/patriceg/entry/dealing_with_back_end_data" in the "Bean based data provider" to experiment- Alternatively, how do i create the application bean without adding "Visual web application bean" ?
Regards,
Rasane
Message was edited by:
rasane