title: JSF 2.0 composite components not working
body: <p>I wanted to introduce CCs in my project. I am running Java EE 6 on JBoss 7.1.1.</p>
  
  <p><em>/myProj/src/main/webapp/composites/scheda.xhtml</em>:</p>
  
  <pre><code>&lt;html 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:composite="http://java.sun.com/jsf/composite"&gt;
  
      &lt;composite:interface&gt;
          &lt;composite:attribute name="prod" /&gt;
      &lt;/composite:interface&gt;
  
      &lt;composite:implementation&gt;
          Hello!
      &lt;/composite:implementation&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><em>/myProj/src/main/webapp/someDir/page.xhtml</em>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ui:composition 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:p="http://primefaces.org/ui"
     xmlns:composites="http://java.sun.com/jsf/composite/composites"
     template="/templates/default.xhtml"&gt;
  
      &lt;ui:define name="content"&gt;
  
          &lt;p:dialog 
              header="Scheda" 
              widgetVar="schedaDialog" 
              id="schedaDialogId"&gt;
  
              &lt;composites:scheda prod="test" /&gt;
  
          &lt;/p:dialog&gt;
  
      &lt;/ui:define&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>This results in:</p>
  
  <blockquote>
    <p>javax.servlet.ServletException: /.../page.xhtml 
    Tag Library supports namespace:
    <a href="http://java.sun.com/jsf/composite/composites" rel="nofollow">http://java.sun.com/jsf/composite/composites</a>, but no tag was defined
    for name: scheda</p>
  </blockquote>
  
  <p>Some bug?</p>