web-L+Q//m0aQ+d0ubjbjo6WXg@public.gmane.org
2011-Aug-11 16:40 UTC
JRuby + Rails3 + Unit Tests = "Log" issue?
Hey all, I am working on a Rails 3.0.7 application that is using JRuby 1.6.3, running on Debian. I keep encountering an error regarding a missing "Log" file when I am trying to run some Unit tests (among various other activities). The cryptic error in question: LoadError: No such file to load -- Log Has anyone seen anything like this before? I am baffled as to where to even begin to solve this. I was able to surpress the same warning when running `jruby -S rails console` by adding the following lines to / config/environments/development.rb config.logger = nil config.active_record.logger = nil config.active_controller.logger = nil Obviously this isn''t a sustainable solution as I need my logs and I need to be able to do some Unit testing. Any help / tips is greatly appreciated. Full stack trace: --- depend_on at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ activesupport-3.0.9/lib/active_support/dependencies.rb:304 depend_on at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ activesupport-3.0.9/lib/active_support/dependencies.rb:300 require_dependency at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ activesupport-3.0.9/lib/active_support/dependencies.rb:216 eager_load! at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/engine.rb:138 each at org/jruby/RubyArray.java:1603 eager_load! at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/engine.rb:137 each at org/jruby/RubyArray.java:1603 eager_load! at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/engine.rb:135 eager_load! at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/application.rb:108 Finisher at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/application/finisher.rb:41 instance_exec at org/jruby/RubyKernel.java:2078 run at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/initializable.rb:25 run_initializers at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/initializable.rb:50 each at org/jruby/RubyArray.java:1603 run_initializers at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/initializable.rb:49 initialize! at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/application.rb:134 send at org/jruby/RubyKernel.java:2092 method_missing at /opt/jruby-1.6.3/lib/ruby/gems/1.8/gems/ railties-3.0.9/lib/rails/application.rb:77 (root) at /home/ereeves/workspace/CargoOps/config/ environment.rb:5 require at org/jruby/RubyKernel.java:1038 (root) at /home/ereeves/workspace/CargoOps/config/ environment.rb:2 require at org/jruby/RubyKernel.java:1038 (root) at test/unit/transaction_charge_type_test.rb:1 --- -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.