首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

No Persistence provider for EntityManager named

2012-10-29 
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 !

热点排行