Actions
Bug #4572
closedProblem loading JDBC drivers with sql:connect
Start date:
2020-06-04
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
10, trunk
Fix Committed on Branch:
10, trunk
Fixed in Maintenance Release:
Platforms:
Description
I do not have much experience with XSLT connecting to SQL, this is more of a discussion.
Let's say I have this JAR library "mysql-connector-java-5.1.42-bin.jar", if it's loaded in the same classpath with Saxon, then it can be used from the XSLT with sql:connect. But if I load the mysql JAR library in a separate class loader which I set on the current thread like this:
Thread.currentThread().setContextClassLoader(customClassLoader);
Saxon will not find the mysql library this way, maybe it can also use the context class loader from the current thread to try and find the driver.
Please register to edit this issue
Actions