eclipse啟動tomcat數(shù)據(jù)庫驅(qū)動問題
問題:在eclipse下啟動tomcat,老是提示找不到合適的數(shù)據(jù)庫驅(qū)動程序(我使用的是db2 v8.1):
Cannot create JDBC driver of class ‘COM.ibm.db2.jdbc.app.DB2Driver‘ for connect URL ‘jdbc:db2:xxxxx‘,cause: No suitable driver
但通過tomcat bin自身的啟動卻沒有任何問題
解決辦法:
把db2中的db2jdbc.dll(db2/bin)或ojdbc9.dll(oracle/ora92/bin)拷貝到j(luò)dk/bin中,就能解決問題
Cannot create JDBC driver of class ‘COM.ibm.db2.jdbc.app.DB2Driver‘ for connect URL ‘jdbc:db2:xxxxx‘,cause: No suitable driver
但通過tomcat bin自身的啟動卻沒有任何問題
解決辦法:
把db2中的db2jdbc.dll(db2/bin)或ojdbc9.dll(oracle/ora92/bin)拷貝到j(luò)dk/bin中,就能解決問題
posted on 2007-08-14 15:00 carry 閱讀(414) 評論(0) 編輯 收藏 所屬分類: java