From 8e7deaae05ebbc49aff3d5abddc46dd5b13c6ba0 Mon Sep 17 00:00:00 2001 From: Tristan Tarrant Date: Fri, 26 Jan 2024 11:00:43 +0100 Subject: [PATCH] JGRP-2756 Look for JDBC drivers in multiple classloaders --- src/org/jgroups/protocols/JDBC_PING.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jgroups/protocols/JDBC_PING.java b/src/org/jgroups/protocols/JDBC_PING.java index 6ca2e0f9899..b11cf75a30b 100644 --- a/src/org/jgroups/protocols/JDBC_PING.java +++ b/src/org/jgroups/protocols/JDBC_PING.java @@ -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 + "'");