title: <h:outputtext> Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: outputtext
body: <p>Using JSF 2.2, Jboss 7. While running its just keep getting " Tag Library supports namespace: <a href="http://java.sun.com/jsf/html" rel="nofollow">http://java.sun.com/jsf/html</a>, but no tag was defined for name: outputtext" this error.. Anyone help me to solve this problem..</p>
  
  <p>Below is that xhtml file. the error is on "" this line. </p>
  
  <p>index.xhtml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
  &lt;!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      template="template/ui.xhtml"&gt;
  &lt;ui:define name="body"&gt;
      &lt;h3&gt;Welcome to JSF Lab&lt;/h3&gt;
      &lt;h4&gt;Pure JSF&lt;/h4&gt;
  
      &lt;p&gt;
        &lt;!-- Shows the error or success message --&gt;
        &lt;h:outputtext value="#{fileUploadMBean.message}" 
          rendered="#{!empty fileUploadMBean.message}"&gt;
        &lt;/h:outputtext&gt;
        &lt;!-- notice the enctype for file upload --&gt;
        &lt;h:form prependid="false" enctype="multipart/form-data"&gt;
        &lt;h:panelgrid&gt;
        &lt;!-- input for files --&gt;
        &lt;h:inputfile value="#{fileUploadMBean.file1}"&gt;&lt;/h:inputfile&gt;
                      &lt;h:inputfile value="#{fileUploadMBean.file2}"/&gt;
        &lt;!-- action which is responsible for uploading file(s) --&gt;
        &lt;h:commandbutton action="#{fileUploadMBean.uploadFile()}" value="Upload" /&gt;
        &lt;/h:panelgrid&gt;
        &lt;/h:form&gt;
      &lt;/p&gt;
        &lt;/ui:define&gt;
        &lt;/ui:composition&gt;
  </code></pre>
  
  <p>This is the bean file for above xml file.. this </p>
  
  <pre><code>FileUploadMBean.java
  
  @ManagedBean
  @ViewScoped
  public class FileUploadMBean implements Serializable {
    private static final long serialVersionUID = 1L;
    private Part file1;
    private Part file2;
    private String message;
    public Part getFile1() {
      return file1;
    }
    public void setFile1(Part file1) {
      this.file1 = file1;
    }
    public Part getFile2() {
      return file2;
    }
    public void setFile2(Part file2) {
      this.file2 = file2;
    }
    public String getMessage() {
      return message;
    }
    public void setMessage(String message) {
      this.message = message;
    }
    public String uploadFile() throws IOException {
      //upload code
    }
  }
  </code></pre>
  
  <p>I know the libraries and versions are okay. because when i run another bean class with another xhtml its working fine that same h:outputtext is showing no error.. the problem i am not understanding. is it would be any configuration issue or something else.</p>