jruby/warbler — Issue #79: Fresh Rails 3.2.2 app .WAR fails when clicking "About application environment"
Author: keyvanfatehi
Created: 2012-03-08 17:11:47+00:00
State: open

Hi I have generated a basic Rails 3.2.2 app on jRuby 1.6.7 using the mysql-database. I installed rails on JRuby using the following procedure: http://blog.nicksieger.com/articles/2010/02/24/jruby-and-rails-3-sitting-in-a-tree (Latest I could find)

rails s -e production works fine, however when I create a warble .war file and then click on "About application environment" I get the following screen in the browser http://cl.ly/06022o3n2H2s1o3n3A2W

Stack trace follows after jgem env output.

$ jgem env
----------------------
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.8.7 (2012-02-22 patchlevel 357) [java]
- INSTALLATION DIRECTORY: /Users/keyvan/.rvm/gems/jruby-1.6.7
- RUBY EXECUTABLE: /Users/keyvan/.rvm/rubies/jruby-1.6.7/bin/jruby
- EXECUTABLE DIRECTORY: /Users/keyvan/.rvm/gems/jruby-1.6.7/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.6
- GEM PATHS:
- /Users/keyvan/.rvm/gems/jruby-1.6.7
- /Users/keyvan/.rvm/gems/jruby-1.6.7@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--no-rdoc --no-ri"
- "update" => "--no-rdoc --no-ri"
- REMOTE SOURCES:
- http://rubygems.org/

Stack trace follows:
=================
➜ Jigsaw git:(master) ✗ rake assets:clean && rake assets:precompile && warble war
/Users/keyvan/.rvm/rubies/jruby-1.6.7/bin/jruby /Users/keyvan/.rvm/gems/jruby-1.6.7/bin/rake assets:clean:all RAILS_ENV=production RAILS_GROUPS=assets
rm -rf /Users/keyvan/src/Jigsaw/public/assets
/Users/keyvan/.rvm/rubies/jruby-1.6.7/bin/jruby /Users/keyvan/.rvm/gems/jruby-1.6.7/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
mkdir -p tmp
rm -f tmp/gems.jar
Creating tmp/gems.jar
rm -f Jigsaw.war
Creating Jigsaw.war
rm -f app/controllers/application_controller.class app/controllers/welcome_controller.class app/helpers/application_helper.class app/helpers/welcome_helper.class config/application.class config/boot.class config/environment.class config/routes.class config/warble.class config/environments/development.class config/environments/production.class config/environments/test.class config/initializers/backtrace_silencers.class config/initializers/inflections.class config/initializers/mime_types.class config/initializers/secret_token.class config/initializers/session_store.class config/initializers/wrap_parameters.class
➜ Jigsaw git:(master) ✗ java -jar Jigsaw.war
[Winstone 2012/03/08 09:00:31] - Beginning extraction from war file
[Winstone 2012/03/08 09:00:32] - WARNING: The Servlet 2.4/2.5 spec XSD was unavailable inside the winstone classpath. Will be retrieved from the web if required (slow)
[Winstone 2012/03/08 09:00:32] - No webapp classes folder found - /private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/classes
[webapp 2012/03/08 09:00:32] - Warning: no max runtimes specified.
[webapp 2012/03/08 09:00:32] - jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
[webapp 2012/03/08 09:00:32] - Info: using runtime pool timeout of 30 seconds
[webapp 2012/03/08 09:00:32] - Warning: no min runtimes specified.
[webapp 2012/03/08 09:00:32] - Warning: no max runtimes specified.
[Winstone 2012/03/08 09:00:32] - Listener winstone.ajp13.Ajp13Listener not found / disabled - ignoring
[Winstone 2012/03/08 09:00:32] - Listener winstone.ssl.HttpsListener not found / disabled - ignoring
[Winstone 2012/03/08 09:00:32] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
[Winstone 2012/03/08 09:00:32] - HTTP Listener started: port=8080
[webapp 2012/03/08 09:00:53] - Warning: no min runtimes specified.
[webapp 2012/03/08 09:00:53] - Warning: no max runtimes specified.
[webapp 2012/03/08 09:00:53] - An exception happened during JRuby-Rack startup
No such file or directory - file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/activerecord-3.2.2/lib/active_record/locale/en.yml
--- System
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
Time: Thu Mar 08 09:00:53 -0800 2012
Server: Winstone Servlet Engine v0.9.10
jruby.home: file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/jruby-stdlib-1.6.7.jar!/META-INF/jruby.home

--- Context Init Parameters:
public.root = /
rails.env = production

--- Backtrace
Errno::ENOENT: No such file or directory - file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/activerecord-3.2.2/lib/active_record/locale/en.yml
mtime at org/jruby/RubyFile.java:1615
updated_at at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/file_update_checker.rb:100
collect at org/jruby/RubyArray.java:2331
updated_at at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/file_update_checker.rb:100
execute at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/file_update_checker.rb:77
initialize_i18n at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/i18n_railtie.rb:67
Railtie at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/i18n_railtie.rb:40
call at org/jruby/RubyProc.java:270
call at org/jruby/RubyProc.java:220
execute_hook at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:34
run_load_hooks at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:43
each at org/jruby/RubyArray.java:1615
run_load_hooks at /Users/keyvan/.rvm/gems/jruby-1.6.7/gems/activesupport-3.2.2/lib/active_support/lazy_load_hooks.rb:42
Finisher at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/application/finisher.rb:52
instance_exec at org/jruby/RubyKernel.java:2062
run at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/initializable.rb:30
run_initializers at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/initializable.rb:55
each at org/jruby/RubyArray.java:1615
run_initializers at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/initializable.rb:54
initialize! at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/application.rb:136
send at org/jruby/RubyKernel.java:2076
method_missing at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/gems.jar!/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30
(root) at config/environment.rb:5
require at org/jruby/RubyKernel.java:1033
load_environment at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/jruby-rack-1.1.4.jar!/jruby/rack/rails.rb:177
load_environment at file:/private/var/folders/s1/ds68mqq1529c4tdvzt7rgt3h0000gn/T/winstone3477691744439264886webroot/Jigsaw.war/WEB-INF/lib/jruby-rack-1.1.4.jar!/jruby/rack/rails.rb:191
(root) at