我正在嘗試使用 MulesSoft 連接到德比客戶端數據庫,我已經按照給定的學習材料進行操作。一旦我建立了通用連接并嘗試運行 url 錯誤,就會顯示:無法從數據源獲取。在我面臨的錯誤消息下方//////////////////////////////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貢獻1770條經驗 獲得超3個贊
您是否將 JDBC 驅動程序設置為 POM 中的共享庫?
https://docs.mulesoft.com/connectors/db/db-configure-connection#set-the-jdbc-driver

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