Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre1
Assignee: Thomas E Enebo
Attachments: load_error.zip
Created: 03/Jun/12 5:18 PM
Description:

Running the sample project fails as bundler fails to load the com.mysql.jdbc.Driver class.

Steps to Reproduce

  1. Use jruby-1.7.0.preview1
  2. Extract the files from the attachment
  3. run bundle install
  4. run jruby main.rb

What I expected to happen

I expected the script to output 'hi there'

What happened instead

Instead I saw the error message:

noformat
LoadError: load error: do_mysql – java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
require at org/jruby/RubyKernel.java:982
(root) at /home/Andrew/.rvm/gems/jruby-1.7.0.preview1@case/gems/dm-mysql-adapter-1.2.0/lib/dm-mysql-adapter/adapter.rb:1
require at org/jruby/RubyKernel.java:982
(root) at /home/Andrew/.rvm/gems/jruby-1.7.0.preview1@case/gems/dm-mysql-adapter-1.2.0/lib/dm-mysql-adapter.rb:1
require at org/jruby/RubyKernel.java:982
(root) at main.rb:4
noformat

Additional Information

I am able to get the expected output when I run the attached script using Jruby 1.6.7.2.

Jruby -v

noformat
jruby -v
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) Client VM 1.7.0_04) [linux-i386-java]
noformat

Environment: Linux u32 2.6.32-30-generic-pae #59-Ubuntu SMP Tue Mar 1 23:01:33 UTC 2011 i686 GNU/Linux
Windows 7 x64 Professional
Project: JRuby
Priority: Major Major
Reporter: Andrew Davey
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to