Hello
My setup:
- Rails application generated with jRuby 1.1.5, Bort and Rails 2.1.2
- Upgraded Rails to 2.2.2
- Changed AASM, rspec, rspec-rails plugins to gems
- Upgraded jruby to 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-12-02 rev
- [i386-java]
I have a model:
class Sample < ActiveRecord::Base
include Java
import ‘java.util.HashMap’
end
In the config/environments/production.rb commented this line:
#config.action_view.cache_template_loading = true
“jruby -S rake spec” runs fine, no errors. But rake tasks with
RAILS_ENV=production fails with error:
No such file to load – /Users/milep/projects/eebu/netbeans/eebu/
java.util.HashMap
eg.
mlemacbook:eebu milep$ jruby -S rake war RAILS_ENV=production --trace
(in /Users/milep/projects/eebu/netbeans/eebu)
** Invoke environment (first_time)
** Execute environment
rake aborted!
No such file to load – /Users/milep/projects/eebu/netbeans/eebu/
java.util.HashMap
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:
1598:in load' /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 1598:in
load’
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:
2413:in load_imports' /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 2356:in
raw_load_rakefile’
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:
1985:in load_rakefile' /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 2036:in
standard_exception_handling’
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:
1984:in load_rakefile' /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 1969:in
run’
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:
2036:in standard_exception_handling' /usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb: 1967:in
run’
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/local/jruby-trunk/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:
19:in `load’
/usr/local/jruby/bin/rake:19
If I uncomment the config.action_view.cache_template_loading, rake
tasks works again. But the war file with production environment wont
work.
In the rails app created with 2.2.2, the java import works.
Does anyone have any pointers where to look? Thanks!
Regards,
Miika Leppänen
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email