1 Reply Latest reply: Dec 23, 2008 7:20 AM by Olaf Heimburger-Oracle RSS

    Logging Error Message in Console  [Servlet Error]-[Cannot find FacesContex]

    676922
      Hi,
      I am using Web Application with JSF . but when i log in into the web appl everthing is fine but in back end i mean the console of RAD Tool having some logging Error message:

      SRVE0026E: [Servlet Error]-[Cannot find FacesContext]: javax.servlet.jsp.JspException: Cannot find FacesContext
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java(Compiled Code))
      at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java(Compiled Code))
      at org.apache.jsp._index._jspService(_index.java:86)
      at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java(Compiled Code))
      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java(Compiled Code))
      at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java(Compiled Code))

      So could you please help me find out the solution for this :


      While i am using the code in jsp page:

      <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
      <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>


      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <HTML>
      <HEAD>


      <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <META http-equiv="Content-Style-Type" content="text/css">

      <TITLE>Web App
           <f:view>
                <h:outputText value="#{dataInfo.info}"/>
           </f:view>
      </TITLE>
      -----------------------------------------------------

      Suggest me the solution:

      Regards,
      Prabhat
        • 1. Re: Logging Error Message in Console  [Servlet Error]-[Cannot find FacesContex]
          Olaf Heimburger-Oracle
          This usually means that you call the JSF page the wrong way. Try something like http://hostname:port/servletcontextroot/faces/page.jspx

          --olaf