title: javax.persistence.PersistenceException: No Persistence provider for EntityManager named customerManager
body: <p>I am new to JPA &amp; Hibernate. After reading some online materials I now understand what Hibernate is and how it can be used with JPA.</p>
  
  <p>Now, I am trying to run this <a href="http://www.deepakgaikwad.net/index.php/2009/04/02/jpa-hibernate-with-oracle-on-eclipse.html" rel="noreferrer">JPA &amp; Hibernate tutorial</a>. I've done everything they mention in this tutorial.</p>
  
  <p>I don't have Oracle DB, only MySQL. So I made some changes to <code>persistence.xml</code> using my understanding of JPA &amp; Hibernate (I don't know if it's correct or not... Seems to me it is.)</p>
  
  <p>Here is my <code>persistence.xml</code></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_1_0.xsd" version="1.0"&gt;
    &lt;persistence-unit name="customerManager" transaction-type="RESOURCE_LOCAL"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
      &lt;class&gt;Customer&lt;/class&gt;
      &lt;properties&gt;
        &lt;property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/&gt;
        &lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/&gt;
        &lt;property name="hibernate.show_sql" value="true"/&gt;
        &lt;property name="hibernate.connection.username" value="root"/&gt;
        &lt;property name="hibernate.connection.password" value="1234"/&gt;
        &lt;property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/general"/&gt;
        &lt;property name="hibernate.max_fetch_depth" value="3"/&gt;
      &lt;/properties&gt;
    &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>But I don't seem to get the output they describe. It's giving me:</p>
  
  <pre><code>Customer id before creation:null
  log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
  log4j:WARN Please initialize the log4j system properly.
  Exception in thread "main" javax.persistence.PersistenceException: No Persistence     provider for EntityManager named customerManager
   at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
   at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
   at CustomerDAO.create(CustomerDAO.java:8)
   at CustomerDAO.main(CustomerDAO.java:22)
  </code></pre>
  
  <p><strong>Any suggestions will be appreciated.</strong></p>
  
  <p><strong>Update:</strong></p>
  
  <p>I have made the changes that are asked to done. But, still getting the asme error lines!!!</p>
  
  <p>They didnt mentioned anything about <strong>orm.xml</strong> in that tutorial. may it be a problem causer!!!</p>