This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have been wrestling with this error for last few days. Please someone point out where I am going wrong.
I am trying to use JPA with eclipselink. It worked fine. To check the behaviour with JPA with hibernate as persistence provider, I changed the persitence.xml and I am getting the infamous error "No Persistence provider for EntityManager named usinghibernate"
My persistence.xml
Java program:
Here is what I did to get hibernate jars : I included 2 dependencies in maven pom.xml:
In the logs, its clear that it is able to find META-INF/persistence.xml and persistence unit and again it complains that it doesnt find the persistence unit.
WARNING: Arun Could not load profiles : No Persistence provider for EntityManager named usinghibernate
Please tell me where I am missing.
I clearly have META-INF/persistence.xml on CLASSPATH and its loading.
I dont know what else it is expecting.