netbean创建了一个数据库应用程序,连接到了mysql的一个表,结果无法运行
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.