pierrickrouxel / activerecord-jdbcas400-adapter

AS/400 JDBC adapter for ActiveRecord
MIT License
7 stars 4 forks source link

Unable to load gem #4

Closed jwoertink closed 8 years ago

jwoertink commented 8 years ago

I added the gem to my gemfile, and bundled. When I try to run rails c, I get this error

vagrant@vagrant-ubuntu-trusty-64:/vagrant$ rails c
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from require at bin/rails:4)
Bundler::GemRequireError: There was an error while trying to load the gem 'activerecord-jdbcas400-adapter'.
                      block in require at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/runtime.rb:81
                                  each at org/jruby/RubyArray.java:1560
                      block in require at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/runtime.rb:72
                                  each at org/jruby/RubyArray.java:1560
                               require at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler/runtime.rb:61
                               require at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/bundler-1.11.2/lib/bundler.rb:99
                                 <top> at /vagrant/config/application.rb:17
                               require at org/jruby/RubyKernel.java:939
                                (root) at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/railties-5.0.0.beta3/lib/rails/commands/commands_tasks.rb:1
  require_application_and_environment! at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/railties-5.0.0.beta3/lib/rails/commands/commands_tasks.rb:156
                               console at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/railties-5.0.0.beta3/lib/rails/commands/commands_tasks.rb:77
                          run_command! at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/railties-5.0.0.beta3/lib/rails/commands/commands_tasks.rb:49
                                 <top> at /home/vagrant/.rbenv/versions/jruby-9.0.4.0/lib/ruby/gems/shared/gems/railties-5.0.0.beta3/lib/rails/command.rb:20
                               require at org/jruby/RubyKernel.java:939
                                 <top> at bin/rails:4

I'm using gem 'rails', '>= 5.0.0.beta3' and jruby -v jruby 9.0.4.0 (2.2.2) 2015-11-12 b9fb7aa OpenJDK 64-Bit Server VM 24.95-b01 on 1.7.0_95-b00 +jit [linux-amd64]

Am I missing something?

pierrickrouxel commented 8 years ago

I havent't already try with Rails 5. I will do that soon. Have you added jdbc-as400 to your Gemfile?

jwoertink commented 8 years ago

My Gemfile has

gem 'jdbc-as400'
gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcas400-adapter'
pierrickrouxel commented 8 years ago

I look for you issue (I took my time :)). activerecord-jdbc-adapter isn't compatible with rails 5 for the moment. You should wait for a future release.