Troubleshooting
Problem
I uploaded a JDBC driver to CPD and created a connection with the driver. Testing connection was successful both on Watson Studio and Watson Machine Learning.
Then, I wrote a python function to connect to DB with the uploaded driver. As you can see, this function works fine in Watson Studio.

Next, I deployed this python function to WML. When I sent the payload to that function, it returned an error message that the driver class is not found.

Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m3p000000UoRHAA0","label":"Administration-\u003EProjects"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.5.4"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
19 July 2023
UID
ibm17012655