Skip to content

Commit

Permalink
JGRP-2756 Look for JDBC drivers in multiple classloaders
Browse files Browse the repository at this point in the history
  • Loading branch information
tristantarrant authored and belaban committed Jan 29, 2024
1 parent 0c03f27 commit 8e7deaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/JDBC_PING.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ protected void loadDriver() {
return;
log.debug("Registering JDBC Driver named '%s'", connection_driver);
try {
Class.forName(connection_driver);
Util.loadClass(connection_driver, this.getClass().getClassLoader());
} catch (ClassNotFoundException e) {
throw new IllegalArgumentException("JDBC Driver required for JDBC_PING "
+ " protocol could not be loaded: '" + connection_driver + "'");
Expand Down

0 comments on commit 8e7deaa

Please sign in to comment.