Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Problem deploying - cannot find class org.eclipse.persistence.jpa.EntityManagerFactoryProvider

I am deploying EclipseLink to a Glassfish application server (replacing TopLink Essentials). I ran packageRename to update my persistence.xml file, and when I deploy the application I get java.lang.ClassNotFoundException: org.eclipse.persistence.jpa.EntityManagerFactoryProvider at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(

I looked at the contents of eclipselink.jar, and I don't find an EntityManagerFactoryProvider in the location specified in persistence.xml. I did find a class in another package - org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider, but when I use this in persistence.xml, I get another exception on startup:
   at java.lang.Class.cast(
at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load( at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load( at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits( at com.sun.enterprise.server.ApplicationLoader.doLoad( at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(

Any hints as to what I'm doing wrong here?

Back to the top