title: Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
body: <p>I have an a error in Jboss 7.0.2 "Arc", spring webflow 2.3.0.RELEASE with richfaces 4.0.0.Final(Myfaces 2.1.1):</p>
  
  <blockquote>
    <p>12:34:19,729 SEVERE [org.apache.myfaces.renderkit.ErrorPageWriter] (http--127.0.0.1-8080-2) An exception occurred: javax.faces.FacesException: java.io.FileNotFoundException: /sections/login/header.xhtml Not Found in ExternalContext as a Resource.</p>
  </blockquote>
  
  <p>when i run my login.xhtml page:</p>
  
  <pre><code>&lt;ui:composition template="/WEB-INF/flows/template/default.xhtml"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:rich="http://richfaces.org/rich"&gt;
  
  &lt;ui:define name="windowTitle"&gt;
  #{msgs.loginTitle}
  &lt;/ui:define&gt;
  
  &lt;ui:define name="heading"&gt;
  &lt;ui:include src="/sections/login/header.xhtml"/&gt;
  &lt;/ui:define&gt;
  
  &lt;ui:define name="sidebarLeft"&gt;
  &lt;ui:include src="/sections/login/sidebarLeft.xhtml"/&gt;
  &lt;/ui:define&gt;
  
  &lt;ui:define name="content"&gt;
  &lt;h:form&gt;
     &lt;h:panelGrid columns="2"&gt;
        #{msgs.namePrompt}
        &lt;h:inputText id="name" value="#{user.name}"/&gt;
        #{msgs.passwordPrompt}
        &lt;h:inputSecret id="password" value="#{user.password}"/&gt;
     &lt;/h:panelGrid&gt;
     &lt;p&gt;
        &lt;h:commandButton value="#{msgs.loginButtonText}"
                         action="planetarium"/&gt;
     &lt;/p&gt;
  &lt;/h:form&gt;
  &lt;/ui:define&gt;
  </code></pre>
  
  <p></p>
  
  <p>The code of header.xhtml is:</p>
  
  <pre><code>  &lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"&gt; 
    &lt;!--  &lt;head&gt;&lt;title&gt;IGNORED&lt;/title&gt;&lt;/head&gt; --&gt;
    &lt;body&gt;
    &lt;ui:composition&gt;
       &lt;div class="header"&gt;
          #{msgs.loginHeading}
       &lt;/div&gt;
    &lt;/ui:composition&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>
  
  <p>the structure file is like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>WEB-INF/flows/inscripcion
      inscripcion-flow.xhtml 
      inscripcion.xhtml    
      login.xhtml
  
  WEB-INF/flows/sections/login
      header.xhtml
      sidebarLeft.xhtml
  
  WEB-INF/flows/template
      template.xhtml
  </code></pre>
  
  <p>Why is this error?, I attached my Jboss Prompt</p>
  
  <p><a href="https://rapidshare.com/files/817066879/log12.zip" rel="nofollow">https://rapidshare.com/files/817066879/log12.zip</a>
  Thnks.</p>