title: EclipseLink : No Persistence provider for EntityManager named
body: <p>I'd like to create one Bundle that is able to use Java Persistence. To achieve this, I've created a plugin project within Eclipse. In my project, I've created a persistence.xml file into META-INF. I've aslo added in my MANIFEST.mf (into the depencies) those 3 packages :</p>
  
  <ol>
  <li>javax.persistence.jar</li>
  <li>org.eclipse.persistence.jar</li>
  <li>org.eclipse.persistence.jar</li>
  </ol>
  
  <p>Then, in my Activator I use this lines to create an EntityManager : </p>
  
  <pre><code>factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME); 
  EntityManager em = factory.createEntityManager();
  </code></pre>
  
  <p>To execute my bundle, I've made a product configuration. When I run my product configuration, I got this error : </p>
  
  <blockquote>
    <p>javax.persistence.PersistenceException: No Persistence provider for EntityManager named people</p>
  </blockquote>
  
  <p>I've tried to move the location of my <code>persistence.xml</code> without success. It seems that any package load the <code>persistence.xml</code> file. Maybe, I don't import the right packages?</p>
  
  <p>You can download my simple Bundle here : <a href="http://rapidshare.com/files/406569640/com.eclipseLink.application.zip" rel="nofollow noreferrer">download</a></p>
  
  <p>Could you help me to find a solution or a clue?</p>