title: Getting java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map;
body: <p>Initially the application was working with JSF 2.1 jars but now as i added JSF 2.2 jars to respective modules in JBoss 7.1 it shows</p>
  
  <pre><code> java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map;
  </code></pre>
  
  <p>As i kept JSF jars in JBoss modules then there should not be any conflict between WEB-INF/lib and JBoss Jars</p>
  
  <pre><code>Note:
  </code></pre>
  
  <ul>
  <li>There are no deployment issues with application i.e WAR is getting
  created without any issue  </li>
  <li>JSF jars are not added to the WEB-INF/lib
  as it is managed at server level</li>
  </ul>
  
  <p>Edit 1
  I have added JSF dependencies through jboss-deployment-structure.xml but still have same issue</p>
  
  <p>Edit 2
  I get this error when i try to access the application </p>