[jboss-user] [Beginners Corner] - Problem with JSF and JBOSS.

nakamuram do-not-reply at jboss.com
Mon Aug 21 19:12:21 EDT 2006


When I try to run my JSF Page on JBOSS 4.04/EJB 3.0, I get an HTTP 500 Error.  My web.xml is simple:


  | <?xml version = '1.0' encoding = 'windows-1252'?>
  | <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
  |   <description>web.xml file for PFTResubmit</description>
  |   
  |   <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>
  |   
  |   <session-config>
  |     <session-timeout>20</session-timeout>
  |   </session-config>
  |   
  |   <mime-mapping>
  |     <extension>html</extension>
  |     <mime-type>text/html</mime-type>
  |   </mime-mapping>
  |   <mime-mapping>
  |     <extension>txt</extension>
  |     <mime-type>text/plain</mime-type>
  |   </mime-mapping>
  |   
  |   <!-- The Usual Welcome File List -->
  |   <welcome-file-list>
  |     <welcome-file>pftresubmit.jspx</welcome-file>
  |   </welcome-file-list>
  | </web-app>
  | 

Everything works in my JDeveloper development environment.  Can someone tell me what I am doing wrong?  


HTTP Status 500 - 

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

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Exception in JSP: /pftresubmit.jspx:10

7:               doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
8:   <jsp:directive.page contentType="text/html;charset=windows-1252"/>
9:   
10:   <f:view>
11:     
12:       
13:         <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

javax.servlet.ServletException: Cannot find FacesContext
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
	org.apache.jsp.pftresubmit_jspx._jspService(pftresubmit_jspx.java:72)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

javax.servlet.jsp.JspException: Cannot find FacesContext
	javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:405)
	org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
	org.apache.jsp.pftresubmit_jspx._jspx_meth_f_view_0(pftresubmit_jspx.java:87)
	org.apache.jsp.pftresubmit_jspx._jspService(pftresubmit_jspx.java:65)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966573#3966573

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966573



More information about the jboss-user mailing list