Looks like in "5.1.22" jdbc-mysql stopped loading mysql connector jar
if RUBY_PLATFORM =~ /java/
warn "jdbc-mysql is only for use with JRuby"
VERSION = "5.1.22"
def self.load_driver(method = :load)
send method, driver_jar
if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
warn "Jdbc-MySQL is only for use with JRuby"
Sequel is throwing error in adapters/jdbc, line 44 trying to return com.mysql.jdbc.Driver, which is not loaded...
Not sure why this has been changed, but it looks like before returning a driver class there should be a call to
Have you verified with the jdbc-* maintainers to notify them of this issue? This is an undocumented backwards incompatible regression in the jdbc-* drivers (reference commit jruby/activerecord-jdbc-adapter@f15684f). Please confirm with them that they don't plan to fix this bug before I attempt to work around this in Sequel.
I really hope they realize the scope of the problem and fix it, because it sucks to have to add workarounds to Sequel to support both the new and old versions of the jdbc-* drivers. They need to be aware that AR-JDBC is not the sole user of the jdbc-* drivers, and they shouldn't make changes like that without considering other users.
Superceded by #598.