Skip to content

Commit

Permalink
Merge pull request #261 from vkrot/master
Browse files Browse the repository at this point in the history
Load jdbc driver with current classloader instead of system
  • Loading branch information
rnorth authored Jan 16, 2017
2 parents c5bfa26 + 035a43c commit c740e17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public Driver getJdbcDriverInstance() {
synchronized (DRIVER_LOAD_MUTEX) {
if (driver == null) {
try {
driver = (Driver) ClassLoader.getSystemClassLoader().loadClass(this.getDriverClassName()).newInstance();
driver = (Driver) Class.forName(this.getDriverClassName()).newInstance();
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
throw new RuntimeException("Could not get Driver", e);
}
Expand Down

0 comments on commit c740e17

Please sign in to comment.