"The driver 'com.mysql.jdbc.Driver' for 'XXX' database cannot be found!" error when attempting to add a database to vRO
book
Article ID: 326001
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
Symptoms:
Workflows against databases fail with a similar error to the one below:
java.lang.IllegalArgumentException: The driver 'com.mysql.jdbc.Driver' for 'MySQL' database cannot be found! (Dynamic Script Module name : addDatabase#9
Environment
VMware vRealize Orchestrator 8.x
Cause
This issue occurs when vRO is unable to detect the relevant jdbc driver for the database in question.
Resolution
Before proceeding best practise dictates you first backup the vRO appliances
Download the required driver from the vendor website.
SSH to each of the vRO appliances.
Change directory to: /data/vco/var/run/vco
Run the following command to create a new directory:
mkdir -p plugins/SQL/lib
Place the driver into the newly created directory:
/data/vco/var/run/vco/plugins/SQL/lib
Open the vRO Control Center.
Go to System Properties.
Add a new property with the following details (replace <name_of_driver> with the correct name):
key = o11n.plugin.SQL.classpath value = /var/run/vco/plugins/SQL/lib/<name_of_driver>.jar
Save changes and wait for the server to restart.
Additional Information
Impact/Risks: Note: In a clustered environment the steps below will need to be performed on each node.