netbean创建了一个数据库应用程序,连接到了mysql的一个表,结果无法运行

jintianhu2000 2008-03-14 03:29:54
netbean创建了一个数据库应用程序,连接到了mysql的一个表,项目创建现实成功,但成功时显示一大堆错误,无法运行,这是怎么回事?

错误提示:
2008-3-14 15:16:29 org.jdesktop.application.Application$1 run
严重: Application class desktopapplication1.DesktopApplication1 failed to launch
javax.persistence.PersistenceException: No Persistence provider for EntityManager named infoSystemPU: The following providers:
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.

Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class desktopapplication1.DesktopApplication1 failed to launch
at org.jdesktop.application.Application$1.run(Application.java:177)

Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named infoSystemPU: The following providers:
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.

...全文
403 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
seamhb 2008-12-03
  • 打赏
  • 举报
回复
我也是同样的问题 焦急中...
hehuimail 2008-08-08
  • 打赏
  • 举报
回复
同样的问题,请问如何解决,谢谢!
jintianhu2000 2008-03-15
  • 打赏
  • 举报
回复
LS能说的具体点吗?什么是JPA?怎么选择peovider?在哪选择?谢谢
forestking_xx 2008-03-14
  • 打赏
  • 举报
回复
: No Persistence provider for EntityManager named infoSystemPU:
我记得netbeans 开发数据库应用的时候要给jpa选择provider, 一般好像可以选hibernate或者toplink,你是不是没有选?
jpa只是接口,实现要靠provider 的。

50,528

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧