title: PersistenceProvider org.hibernate.ejb.HibernatePersistence not found
body: <p>I am getting the following Exception while deploying my EJB EAR into <code>JBoss7.1</code> server:</p>
  
  <pre><code>Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider '
              org.hibernate.ejb.HibernatePersistence
          ' not found
  </code></pre>
  
  <p>I have the following jar added with my EJB(These are also resides inside my jboss modules <code>jboss_home/modules/org/hibernate/main</code>):</p>
  
  <pre><code>hibernate-commons-annotations-4.0.1.Final.jar
  hibernate-core-4.0.1.Final.jar
  hibernate-entitymanager-4.0.1.Final.jar
  hibernate-infinispan-4.0.1.Final.jar
  </code></pre>
  
  <p>Here is how I added hibernate provider at my <code>persistence.xml</code> file:</p>
  
  <pre><code>&lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
      version="2.0"&gt;
      &lt;persistence-unit name="hbPU" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;
              org.hibernate.ejb.HibernatePersistence
          &lt;/provider&gt;
          ...
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>