#1127 ✓resolved
Peter Brant

Context ClassLoader is not always JRuby ClassLoader

Reported by Peter Brant | November 17th, 2009 @ 06:22 PM

With JRuby 1.4.0, Warbler 0.9.14, and Tomcat, the context ClassLoader is set to the WebappClassLoader, not JRuby's ClassLoader.

AbstractDriverDefinition always uses the CCL to load the JDBC driver. The result is that JDBC drivers loaded from gems aren't found. The attached patch loads the JDBC driver from the ClassLoader that loaded AbstractDriverDefinition if the driver can't be found in the CCL. This fixes the problem in the above environment.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket