Java GUI鏈接sqlserver的問題
-
run: Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named localhost:1433;DatabaseName=OSPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpe... run: Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named localhost:1433;DatabaseName=OSPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory: oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Local Exception Stack: ) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: predeploy for PersistenceUnit [localhost:1433;DatabaseName=OSPU] failed. Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while loading class: Base.Car to check whether it implements @Entity, @Embeddable, or @MappedSuperclass. Internal Exception: java.lang.ClassNotFoundException: Base.Car 我的sqlserver已經在Netbean成功連接了,可以在NetBeans查看到了數(shù)據(jù)庫的信息。。 可是還是顯示Exception Description: predeploy for PersistenceUnit [localhost:1433;DatabaseName=OSPU] failed. Z主要的是Caused by: java.lang.ClassNotFoundException: Base.Car ,這個Base.car文件已經被我刪除了,怎么還顯示不能生成類啊。。跪求高手解答 展開
全部評論(3條)
-
- 艾梵11 2010-09-23 00:00:00
- 簡單
-
贊(10)
回復(0)
-
- 吃貨受不了555 2010-09-22 00:00:00
- 如果把這個類刪掉了,應該是把所有對這個類的引用去掉,然后把所有之前用到它的java都重新編譯,不然原先編譯好的class還是會去找這個類。
-
贊(14)
回復(0)
-
- oopkooks5 2010-09-22 00:00:00
- 代碼要學會找錯,主要是這句 localhost:1433;DatabaseName=teacherloadPU] failed. 說明你的數(shù)據(jù)庫有問題,或者是數(shù)據(jù)庫創(chuàng)建正確但寫的時候出現(xiàn)了錯誤 是不是你沒有下載數(shù)據(jù)庫的驅動程序啊,jsp連數(shù)據(jù)庫是要下SQL Server 2000的升級包的,還有驅動程序
-
贊(18)
回復(0)
熱門問答
- Java GUI鏈接sqlserver的問題
- run: Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named localhost:1433;DatabaseName=OSPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpe... run: Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named localhost:1433;DatabaseName=OSPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory: oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Local Exception Stack: ) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException Exception Description: predeploy for PersistenceUnit [localhost:1433;DatabaseName=OSPU] failed. Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while loading class: Base.Car to check whether it implements @Entity, @Embeddable, or @MappedSuperclass. Internal Exception: java.lang.ClassNotFoundException: Base.Car 我的sqlserver已經在Netbean成功連接了,可以在NetBeans查看到了數(shù)據(jù)庫的信息。。 可是還是顯示Exception Description: predeploy for PersistenceUnit [localhost:1433;DatabaseName=OSPU] failed. Z主要的是Caused by: java.lang.ClassNotFoundException: Base.Car ,這個Base.car文件已經被我刪除了,怎么還顯示不能生成類啊。。跪求高手解答 展開
- 那種java GUI工具包做動畫合適
- java中GUI工具包有什么和什么
- java 計時器的問題
- 新手,剛了解Timer類,寫了個小程序,為什么控制臺沒有輸出?求指點 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TestTimer implements ActionListener { Timer timer=new Timer(1000,this); public Tes... 新手,剛了解Timer類,寫了個小程序,為什么控制臺沒有輸出?求指點 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TestTimer implements ActionListener { Timer timer=new Timer(1000,this); public TestTimer(){ timer.start(); } public void actionPerformed(ActionEvent e){ System.out.println("1"); } public static void main(String[] args){ TestTimer t=new TestTimer(); } } 展開
- 關于JAVA碰撞問題的檢測
- 我寫了倆個類,一個是胡亂飛,一個是用鼠標控制圖片,我現(xiàn)在要用 public boolean intersects(Rectangle r) 來檢測,于是我新建了個類來檢測,這個倆個類中的和圖片是否 碰撞,如果碰撞就停止。我在這個類新建了飛和鼠標控制圖片的對象,我現(xiàn)在要... 我寫了倆個類,一個是胡亂飛,一個是用鼠標控制圖片,我現(xiàn)在要用 public boolean intersects(Rectangle r) 來檢測,于是我新建了個類來檢測,這個倆個類中的和圖片是否 碰撞,如果碰撞就停止。我在這個類新建了飛和鼠標控制圖片的對象,我現(xiàn)在要怎么弄將倆個結合起來啊,有點暈啊,需要代碼的,我也可以發(fā)給你,幫忙下了 展開
- GUI編程軟件是什么?
- java關于Timer計時器的問題求解
- new Timer(false).schedule(new java.util.TimerTask(){ public void run() { System.out.print("hello!"); this.cancel(); } },0,10); 以上代碼片段,我每按一次鍵盤,就會執(zhí)行一次,當我狂按鍵盤時(這段代碼就... new Timer(false).schedule(new java.util.TimerTask(){ public void run() { System.out.print("hello!"); this.cancel(); } },0,10); 以上代碼片段,我每按一次鍵盤,就會執(zhí)行一次,當我狂按鍵盤時(這段代碼就會執(zhí)行很多次),然后我發(fā)現(xiàn)電腦的cpu占用超高,退出java程序cpu占用才掉下來,我不是已經寫了cancel();嗎?難道每次執(zhí)行創(chuàng)造的線程都沒有退出?目前我認為是重復大量創(chuàng)建線程是的cpu占用過高的。請問怎么才能每執(zhí)行完成后,有就結束掉線程,或者說,cpu占用過高是其他原因? 展開
- 現(xiàn)在的SQLSERVER數(shù)據(jù)庫監(jiān)控軟件有哪些
- 現(xiàn)在的SQLSERVER數(shù)據(jù)庫監(jiān)控軟件有哪些
- JAVA計時器的JAVA代碼
- 要求有計時,分別計時并且顯示(每次按下按鈕分別計時顯示出來),就像體育老師的計跑步的計時器一樣,可以讀到每個撞線的人的成績。三個按鍵,開始,分別計時,結束。
- python的GUI設計用什么軟件?
- 誰有sqlserver數(shù)據(jù)庫的視頻教程?我要全集的
- 在此計算機中找不到 Java SE 開發(fā)工具包是什么問題。。
- 怎么在MyEclipse8.5中添加GUI工具包
- sqlserver 下怎么建立數(shù)據(jù)庫 怎么建表
- 求ABS212的磁力鏈接
- java虛擬機的作用
4月突出貢獻榜
推薦主頁
最新話題





參與評論
登錄后參與評論