No Persistence provider for EntityManager named

No Persistence provider for EntityManager named …I have my persistence.xml with the same name, usin

No Persistence provider for EntityManager named …
I have my persistence.xml with the same name, using toplink, under META-INF directory. Then I have my code calling it with...



It should have been in the classpath... Yet, I got the above error... Really appreciate any help... Thanks
1 楼 29163077 2010-09-01   能不能说中文 详细点? 2 楼 dontal 2010-12-20   Maybe your persistence.xml is put in a wrong folder, ranther than META-INF. 3 楼 我思故我在 2012-07-03   Please pay attention to “No Persistence provider for EntityManager”

That means you don‘t hava the persistence provider

Just add the jar “hibernate-entitymanager.jar”,Then problem is OK !