Home » Eclipse Projects » EclipseLink » Proxy could not create EMF from provider org.eclipse.persistence.jpa.osgi.PersistenceProvider(EclipseLink fails when running in OSGi setting, claims it can not build the EMF from the provider.)

(I have no idea why the picture of the envelope appears in the post - it must be a special character or something, but I didn't put it there.)

Our bundle has multiple classes, but I have only included one in the persistence.xml file and it is an exact copy of hello.jpa.Person from the example. Our bundle is currently configured to run as a JUnit plugin test (it is a fragment on top of another bundle). The org.eclipse.persistence.{core,jpa,jpa.osgi} are all running at the required start levels. Derby is also running. Our persistence.xml file is identical to the persistence file from the example with only package names changed.

Has anyone encountered this error before? Any thoughts on how to fix it?