title: cannot load jsp page
body: <p><strong>I am trying to create a simple JSF project but index.jsp page doesnot open and throws exception</strong> </p>
  
  <blockquote>
    <p>javax.faces.FacesException: An exception occurred processing JSP page
    /index.jsp at line 5</p>
    
    <p>2: &lt;%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%> 3: &lt;%@
    taglib prefix="h"  uri="http://java.sun.com/jsf/html"%> 4:  5:  6:  7:
     8: </p>
    
    <p><strong>Stacktrace:</strong>   </p>
    
    <blockquote>
      <p>org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:347)
      org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)</p>
    </blockquote>
    
    <p>org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)</p>
    
    <p>org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:187)   at
    org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:103)</p>
    
    <p>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
      at
    org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
      at
    org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at
    org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at
    org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
      at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
      at
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Unknown Source) Caused by:
    org.apache.jasper.JasperException: An exception occurred processing
    JSP page /index.jsp at line 5</p>
    
    <p>2: &lt;%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%> 3: &lt;%@
    taglib prefix="h"  uri="http://java.sun.com/jsf/html"%> 4:  5:  6:  7:
     8: </p>
    
    <p>Stacktrace:   at
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:498)
      at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
      at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)     at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
      at
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
      at
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
      at
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
      at
    org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:341)
      ... 26 more Caused by: java.lang.RuntimeException: Cannot find
    FacesContext  at
    javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
      at
    javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
      at
    org.apache.jsp.index_jsp._jspx_meth_f_005fview_005f0(index_jsp.java:87)
      at org.apache.jsp.index_jsp._jspService(index_jsp.java:64)  at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
      ... 36 more</p>
  </blockquote>
  
  <p><strong>i thought it was an server error but when i tried to access server from browser.it works fine.and i ve checked out for libraries of JSF and it is also included under jboss server
  can some please help me...</strong></p>
  
  <p><strong>index.jsp</strong></p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%&gt;
  &lt;%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%&gt;
  &lt;%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;f:view&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h:outputLabel value="i am here!!!!!!"&gt;&lt;/h:outputLabel&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;/f:view&gt;
  </code></pre>
  
  <p>i cant upload image of folder strucure due to reputation level.. </p>
  
  <p><strong>lib folder doesnot contain any libraries rather it is in libraries inside javaResources:src folder..</strong></p>