#11 new
William Gray

Module load error running against activesupport v3.0.0.rc

Reported by William Gray | August 13th, 2010 @ 12:15 PM

When you fire up jetty_rails and your rails version is 3.0.0.rc, you'll find an error when jetty_rails tries to load active support using the deprecated require 'activesupport':

$ jetty_rails --help
/Users/wgray/.rvm/rubies/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require': no such file to load -- activesupport (LoadError)
    from /Users/wgray/.rvm/rubies/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Users/wgray/.rvm/gems/jruby-1.5.1/gems/jetty-rails-0.8.1/lib/jetty_rails.rb:10
    from /Users/wgray/.rvm/gems/jruby-1.5.1/gems/jetty-rails-0.8.1/lib/jetty_rails.rb:31:in `require'
    from /Users/wgray/.rvm/rubies/jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Users/wgray/.rvm/gems/jruby-1.5.1/gems/jetty-rails-0.8.1/bin/jetty_rails:37
    from /Users/wgray/.rvm/gems/jruby-1.5.1/gems/jetty-rails-0.8.1/bin/jetty_rails:19:in `load'
    from /Users/wgray/.rvm/gems/jruby-1.5.1/bin/jetty_rails:19

Small adjustment to require fixes this (although you probably want to detect try the old way, catch it on exception, and then try the new way, to support various rails versions): require 'active_support'.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Jetty Rails aims to run any Warbler based JRuby on Rails or JRuby Merb applications with Jetty Container, loading configuration from Warbler.

This project is useful for people developing JRuby on Rails (or Merb) applications that can not use mongrel for development. Rails and Merb applications integrated with servlet based applications in the same context would be a reasonable reason.

People watching this ticket