title: Persistence provider not found
body: <p>everyone. I'm new to JPA 2.0. I'm using maven and eclipse, as well as eclipse link. I have this in my persistence.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.0" 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"&gt;
      &lt;persistence-unit name="certifications"&gt;
          &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt;
          &lt;class&gt;com.ni.apps.engineering.certification.entities.NicdsCliCertificationStg&lt;/class&gt;
          &lt;class&gt;com.ni.apps.engineering.certification.entities.NicdsCliCertificationStgPK&lt;/class&gt;
          &lt;class&gt;com.ni.apps.engineering.certification.entities.NicdsCliUpMapping&lt;/class&gt; 
          &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;          
          &lt;properties&gt;            
              &lt;property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@localhost:5455:orcl"/&gt;
              &lt;property name="javax.persistence.jdbc.password" value="ni"/&gt;
              &lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.OracleDriver"/&gt;
              &lt;property name="javax.persistence.jdbc.user" value="NI"/&gt;
              &lt;property name="eclipselink.logging.level.sql" value="FINE"/&gt;
          &lt;/properties&gt;       
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>And I have this code in a facade to get the entity manager.</p>
  
  <pre><code>private EntityManagerFactory emf;
  
  protected EntityManager getEntityManager(){
      if(emf == null){
          emf = Persistence.createEntityManagerFactory("certifications");
      }
      return emf.createEntityManager();
  }
  </code></pre>
  
  <p>When I get to this part, it always returns "No persistence provider for EntityManager named certifications". I made sure that the persistence.xml is in the META-INF and the META-INF is part of the classpath. Any ideas? Thanks!!</p>
  
  <p>--EDIT--
  Stacktrace added</p>
  
  <pre><code>Exception in thread "main" com.ni.apps.engineering.certification.exception.CertificationException: Internal Server Error
      at com.ni.apps.engineering.certification.controller.AbstractFacade.getContactIdByUpId(AbstractFacade.java:28)
      at com.ni.apps.engineering.certification.controller.CertificationFacade.getCertificationsByUpId(CertificationFacade.java:14)
      at com.ni.apps.engineering.certification.dao.CertificationDAO.getCertificationByUpId(CertificationDAO.java:13)
      at Main.main(Main.java:9)
  Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named certifications
      at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)
      at javax.persistence.Persistence.createEntityManagerFactory(Unknown Source)
      at com.ni.apps.engineering.certification.controller.AbstractFacade.getEntityManager(AbstractFacade.java:17)
      at com.ni.apps.engineering.certification.controller.AbstractFacade.getContactIdByUpId(AbstractFacade.java:25)
  </code></pre>