lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.3.6 vs lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-4.3.7

- old
+ new

@@ -133,10 +133,11 @@ private def load_drivers(drivers) drivers.each do |driver| begin - require driver + class_loader = java.lang.ClassLoader.getSystemClassLoader().to_java(java.net.URLClassLoader) + class_loader.add_url(java.io.File.new(driver).toURI().toURL()) rescue => e @logger.error("Failed to load #{driver}", :exception => e) end end end