|Re: [eclipselink-users] No Persistence provider for EntityManager - Error when using EclipseLink|
One way this exception can occur is when you have persistence.jar on your classpath but not the JPA provider jar. Make sure you have both persistence.jar and eclipselink.jar on your classpath.
Hi everybody, I have tried to switch my application from Toplink Essentials to Eclipselink, but it currently doesn't work. After replacing the jar library and doing the necessary changes in persistence.xml and source code I always get an Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named default at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89) at com.emd.testpersistence.MyEntityManager.main(MyEntityManager.java:89) Thx for help, Alex
Back to the top