I am trying to get JRuby to work with some simple etl scripts and I am
having issues. A few questions...
* I am using the trunk of AW-ETL
* What version of active record should I be using? Right now I am at 2.0.2.
* I am trying JRuby 1.1RC1
* I updated the etl script to add the following so it would find my jdbc drivers
if RUBY_PLATFORM =~ /java/
require 'rubygems'
gem 'activerecord-jdbc-adapter'
require 'jdbc_adapter'
end
Below is the error I am seeing
jruby -S etl obs_dimension.ctl
Using AdapterExtensions
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:263:in
`load_m
issing_constant': uninitialized constant ActiveRecord::Base (NameError)
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:2
53:in `const_missing'
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activewarehouse-etl-0.9.1/bin/../lib/etl/engine.rb:3
from
C:/projects/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
from
C:/projects/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/projects/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:4
96:in `new_constants_in'
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:3
18:in `require'
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:4
96
from
C:/projects/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/projects/jruby-1.1RC1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
C:/projects/jruby-1.1RC1/lib/ruby/gems/1.8/gems/activewarehouse-etl-0.9.1/bin/etl:34
from C:/projects/jruby-1.1RC1/bin/etl:19:in `load'
from C:/projects/jruby-1.1RC1/bin/etl:19
from
file:/C:/projects/jruby-1.1RC1/lib/jruby.jar!/jruby/commands.rb:14:in
`load'
from
file:/C:/projects/jruby-1.1RC1/lib/jruby.jar!/jruby/commands.rb:14:in
`etl'
from file:/C:/projects/jruby-1.1RC1/lib/jruby.jar!/jruby/commands.rb:11
Thanks
CW
_______________________________________________
Activewarehouse-discuss mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/activewarehouse-discuss