You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Azim, Dunia" <Du...@PROSTEP.com> on 2007/08/07 14:08:42 UTC
[Trinidad] examples-blank-1.2.1 - cannot find FacesContext
Hi again,
I'm still struggling to get the basics of trinidad framework running. After updating from tomcat 5.5.23 to tomcat 6.0.13 the examples-demo 1.2.1 is running. But this basic examples-blank-1.2.1 still is failing with the error message:
Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: Cannot find FacesContext
...
I use JDK 1.5.0.10
What I did is deploying the war file to tomcat's webapps directory and adding the missing jsf-api and jsf-impl jars (v1.2.04) just like I did with the demo-examples. Additionally I added the jstl-1.2.jar to the Web-INF/lib. What is missing? Or what might be wrong with the delivered web.xml of the example? Do I need the javaee.jar? When I put this jar to the Web-INF/lib tomcat is not coming up anymore.
I'm very thankfull for any hint, as I urgently have to get started with Trinidad and Tomcat.
Thanx
Dunja Azim
complete error message:
org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.RuntimeException: Cannot find FacesContext
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
org.apache.jsp.index_jspx._jspx_meth_f_005fview_005f0(index_jspx.java:95)
org.apache.jsp.index_jspx._jspService(index_jspx.java:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Dunia Azim
PROSTEP AG
CC-SwAD
Dolivostraße 11
D-64293 Darmstadt
Tel: +49 6151 9287 468
Fax: +49 6151 9287 326
dunia.azim@prostep.com
www.prostep.com
________________________________________________________________________
PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8383
Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
________________________________________________________________________
Re: [Trinidad] examples-blank-1.2.1 - cannot find FacesContext
Posted by Matthias Wessendorf <ma...@apache.org>.
Hi,
try
http://localhost:8080/blank/faces/index.jspx
-Matthias
On 8/7/07, Azim, Dunia <Du...@prostep.com> wrote:
> Hi again,
> I'm still struggling to get the basics of trinidad framework running. After updating from tomcat 5.5.23 to tomcat 6.0.13 the examples-demo 1.2.1 is running. But this basic examples-blank-1.2.1 still is failing with the error message:
>
> Servlet.service() for servlet jsp threw exception
> java.lang.RuntimeException: Cannot find FacesContext
> ...
>
> I use JDK 1.5.0.10
> What I did is deploying the war file to tomcat's webapps directory and adding the missing jsf-api and jsf-impl jars (v1.2.04) just like I did with the demo-examples. Additionally I added the jstl-1.2.jar to the Web-INF/lib. What is missing? Or what might be wrong with the delivered web.xml of the example? Do I need the javaee.jar? When I put this jar to the Web-INF/lib tomcat is not coming up anymore.
>
> I'm very thankfull for any hint, as I urgently have to get started with Trinidad and Tomcat.
> Thanx
> Dunja Azim
>
> complete error message:
>
> org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:435)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> root cause
>
> java.lang.RuntimeException: Cannot find FacesContext
> javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1796)
> javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1613)
> org.apache.jsp.index_jspx._jspx_meth_f_005fview_005f0(index_jspx.java:95)
> org.apache.jsp.index_jspx._jspService(index_jspx.java:72)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> Dunia Azim
>
> PROSTEP AG
> CC-SwAD
> Dolivostraße 11
> D-64293 Darmstadt
>
> Tel: +49 6151 9287 468
> Fax: +49 6151 9287 326
>
> dunia.azim@prostep.com
> www.prostep.com
> ________________________________________________________________________
> PROSTEP AG, Dolivostraße 11, D-64293 Darmstadt
> HR: Amtsgericht Darmstadt, HRB 8383
> Vorstand: Dr. Bernd Pätzold (Vorsitz), Reinhard Betz
> Aufsichtsrat: Dr. Heinz-Gerd Lehnhoff (Vorsitz)
> ________________________________________________________________________
>
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org