This project is archived and is in readonly mode.

#3872 ✓committed
MOE

[PATCH] Rails3 application named 'Test' fails webrick with uninitialized constant Rack::Test::Application

Reported by MOE | February 6th, 2010 @ 06:05 AM | in 3.0.2

Webrick fails with rescue in load_missing_constant': uninitialized constant Rack::Test::Application (NameError) if application is named 'Test'. Stack trace:


moe@ingrid:/tmp/Test$ rails server
=> Booting WEBrick
=> Rails 3.0.0.beta application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/var/lib/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:456:in `rescue in load_missing_constant': uninitialized constant Rack::Test::Application (NameError)
    from /var/lib/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:452:in `load_missing_constant'
    from /var/lib/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:91:in `const_missing_with_dependencies'
    from config.ru:4:in `block in '
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1:in `'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:35:in `eval'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/builder.rb:35:in `parse_file'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/server.rb:113:in `app'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/server.rb:189:in `wrapped_app'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/server.rb:155:in `start'
    from /var/lib/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands/server.rb:49:in `start'
    from /var/lib/gems/1.9.1/gems/rack-1.1.0/lib/rack/server.rb:83:in `start'
    from /var/lib/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/commands.rb:39:in `'
    from /tmp/Test/script/rails:10:in `require'
    from /tmp/Test/script/rails:10:in `'

I guess this should be somehow mentioned at docs...

Comments and changes to this ticket

Create your profile

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

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Referenced by

Pages