我正在嘗試使用 MulesSoft 連接到德比客戶端數(shù)據(jù)庫,我已經(jīng)按照給定的學(xué)習(xí)材料進(jìn)行操作。一旦我建立了通用連接并嘗試運(yùn)行 url 錯誤,就會顯示:無法從數(shù)據(jù)源獲取。在我面臨的錯誤消息下方//////////////////////////////org.mule.runtime.api.connection.ConnectionException: Could not obtain connection from data sourceCaused by: org.mule.extension.db.api.exception.connection.ConnectionCreationException: Could not obtain connection from data sourceCaused by: org.mule.runtime.extension.api.exception.ModuleException: java.sql.SQLException: Error trying to load driver: org.apache.derby.jdbc.ClientDriver : Cannot load class ' org.apache.derby.jdbc.ClientDriver': [ org.apache.derby.jdbc.ClientDriver, Cannot load class ' org.apache.derby.jdbc.ClientDriver': [ Class ' org.apache.derby.jdbc.ClientDriver' has no package mapping for region 'domain/default/app/tooling-application-8bc17c50-a618-11e9-a2eb-025041000101'., Cannot load class ' org.apache.derby.jdbc.ClientDriver': [ Class ' org.apache.derby.jdbc.ClientDriver' has no package mapping for region '/domain/default'., Class ' org.apache.derby.jdbc.ClientDriver' not found in classloader for artifact 'container'.]]]Caused by: java.sql.SQLException: Error trying to load driver: org.apache.derby.jdbc.ClientDriver : Cannot load class ' org.apache.derby.jdbc.ClientDriver': [ org.apache.derby.jdbc.ClientDriver, Cannot load class ' org.apache.derby.jdbc.ClientDriver': [ Class ' org.apache.derby.jdbc.ClientDriver' has no package mapping for region 'domain/default/app/tooling-application-8bc17c50-a618-11e9-a2eb-025041000101'.,
2 回答

德瑪西亞99
TA貢獻(xiàn)1770條經(jīng)驗(yàn) 獲得超3個贊
您是否將 JDBC 驅(qū)動程序設(shè)置為 POM 中的共享庫?
https://docs.mulesoft.com/connectors/db/db-configure-connection#set-the-jdbc-driver

慕妹3242003
TA貢獻(xiàn)1824條經(jīng)驗(yàn) 獲得超6個贊
嘿,以防萬一有人在我這邊遇到這個錯誤,我忘了關(guān)閉連接
finally { call.closeAll(); }
這導(dǎo)致錯誤=“無法從數(shù)據(jù)源獲取連接,不允許添加多個最后資源。當(dāng)前資源是 org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@17d3bab6
添加回答
舉報
0/150
提交
取消