jBoss連接oracle時異常 Could not create connection; - nested throwable:

  jBoss+JNDI+oracle中的異常

 

在練習jBoss中用JNDI連接oracle時,發現總是莫名奇妙的出現異常,用tomcat+jdbc連接卻一切正常,後來baidu了才知道,原來是在jBoss中少了兩個連接oracle的驅動包!在Jboss下的server/default/lib下面沒有class12.jar

 

JNDI數據連接異常Could not create connection; - nested throwable:

(java.lang.NullPointerException); - nested throwable:

(org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)) -(:47)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章