Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2506065
  • 博文数量: 319
  • 博客积分: 9650
  • 博客等级: 中将
  • 技术积分: 3881
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-27 21:05
文章分类

全部博文(319)

文章存档

2017年(5)

2016年(10)

2015年(3)

2014年(3)

2013年(10)

2012年(26)

2011年(67)

2010年(186)

2009年(9)

分类: 数据库开发技术

2010-02-03 10:16:22

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/shajunxing/archive/2009/12/09/4973404.aspx
 
 
NetBeans 开发 JPA 应用程序,使用 TopLink ,报如下错误:
 
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named XXX:  The following providers:
org.hibernate.ejb.HibernatePersistence
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.
换成 Hibernate 就没有这个问题。
 
经网上查找( )和测试,这是由于项目带有中文路径的 BUG !
 
 
阅读(4059) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~