I am trying to deploy a simple MyFaces 1.2 app to Geronimo 2.0.2 with Tomcat
6.
When deployed, I get:
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.RuntimeException: FacesContext
not found
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
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:806)
root cause
java.lang.RuntimeException: FacesContext not found
javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:238)
javax.faces.webapp.UIComponentClassicTagBase.getPreviousJspIdsSet(UIComponentClassicTagBase.java:1214)
javax.faces.webapp.UIComponentClassicTagBase.checkIfItIsInAnIterator(UIComponentClassicTagBase.java:1199)
javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:165)
org.apache.jsp.signup_jsp._jspx_meth_f_005fview_005f0(signup_jsp.java:95)
org.apache.jsp.signup_jsp._jspService(signup_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
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:806)
I do NOT have any libs included in the deployment. I finally stripped my
web.xml to the minimum:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="devSignup" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>devSignup</display-name>
<context-param>
<description>Comma separated list of URIs of (additional) faces config
files. </description>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/dev-startup.xml</param-value>
</context-param>
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>signup.jsp</welcome-file>
</welcome-file-list>
</web-app>
But have tried MANY different combinations -- I am navigating to:
http://localhost:8080/devSignup/signup.jsp
to receive the above error
Any help is appreciated.
Buddy
--
View this message in context:
http://www.nabble.com/Cannot-find-FacesContext-tp14321799s134p14321799.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.