国产三级在线看完整版-内射白嫩大屁股在线播放91-欧美精品国产精品综合-国产精品视频网站一区-一二三四在线观看视频韩国-国产不卡国产不卡国产精品不卡-日本岛国一区二区三区四区-成年人免费在线看片网站-熟女少妇一区二区三区四区

儀器網(yiqi.com)歡迎您!

| 注冊2 登錄
網站首頁-資訊-話題-產品-評測-品牌庫-供應商-展會-招標-采購-知識-技術-社區(qū)-資料-方案-產品庫-視頻

問答社區(qū)

Java GUI鏈接sqlserver的問題

5ax3jvn 2010-09-21 12:12:30 478  瀏覽
  • 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文件已經被我刪除了,怎么還顯示不能生成類啊。。跪求高手解答 展開
2010-09-21 12:12:30 478 3
那種java GUI工具包做動畫合適
 
2017-05-28 12:42:05 395 1
java中GUI工具包有什么和什么
 
2013-01-05 09:47:43 328 2
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(); } } 展開
2015-08-05 10:28:10 462 1
關于JAVA碰撞問題的檢測
我寫了倆個類,一個是胡亂飛,一個是用鼠標控制圖片,我現(xiàn)在要用 public boolean intersects(Rectangle r) 來檢測,于是我新建了個類來檢測,這個倆個類中的和圖片是否 碰撞,如果碰撞就停止。我在這個類新建了飛和鼠標控制圖片的對象,我現(xiàn)在要... 我寫了倆個類,一個是胡亂飛,一個是用鼠標控制圖片,我現(xiàn)在要用 public boolean intersects(Rectangle r) 來檢測,于是我新建了個類來檢測,這個倆個類中的和圖片是否 碰撞,如果碰撞就停止。我在這個類新建了飛和鼠標控制圖片的對象,我現(xiàn)在要怎么弄將倆個結合起來啊,有點暈啊,需要代碼的,我也可以發(fā)給你,幫忙下了 展開
2015-01-07 00:57:29 324 1
GUI編程軟件是什么?
 
2016-07-15 18:19:36 478 1
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占用過高是其他原因? 展開
2016-08-19 01:56:43 345 2
現(xiàn)在的SQLSERVER數(shù)據(jù)庫監(jiān)控軟件有哪些
 
2017-03-12 20:12:36 300 2
現(xiàn)在的SQLSERVER數(shù)據(jù)庫監(jiān)控軟件有哪些
 
2015-09-25 09:01:49 302 1
JAVA計時器的JAVA代碼
要求有計時,分別計時并且顯示(每次按下按鈕分別計時顯示出來),就像體育老師的計跑步的計時器一樣,可以讀到每個撞線的人的成績。三個按鍵,開始,分別計時,結束。
2011-05-21 11:40:40 421 2
python的GUI設計用什么軟件?
 
2017-12-10 04:26:31 394 2
誰有sqlserver數(shù)據(jù)庫的視頻教程?我要全集的
 
2018-11-25 18:56:37 270 0
在此計算機中找不到 Java SE 開發(fā)工具包是什么問題。。
 
2014-07-09 03:36:54 446 1
怎么在MyEclipse8.5中添加GUI工具包
 
2017-04-11 23:33:42 534 1
sqlserver 下怎么建立數(shù)據(jù)庫 怎么建表
 
2017-11-21 22:30:28 426 2
求ABS212的磁力鏈接
 
2018-11-29 16:21:21 295 0
java虛擬機的作用
 
2018-02-21 05:48:47 369 2

4月突出貢獻榜

推薦主頁

最新話題