エラー回避 ObjectSpace is disabled; each_object will only work with Class, pass +O to enable (RuntimeError)

特に何もしていないのに突然Mongrelサーバーが起動しなくなった。(> <);

Ubuntu 8.0.4
jruby 1.1.4
Rails 2.1.1

エラーの内容はこれ↓


=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.1.1 application starting on http://127.0.0.1:3006
=> Call with -d to detach
=> Ctrl-C to shutdown server

Starting Mongrel listening at 127.0.0.1:3006

Starting Rails with development environment...

Exiting
/usr/local/bin/jruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:517:in `require': ObjectSpace is disabled; each_object will only work with Class, pass +O to enable (RuntimeError)
from /usr/local/bin/jruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:39
from /usr/local/bin/jruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:27:in `require'
from /usr/local/bin/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/user/workspace/testapp/./script/server:3
from /home/user/workspace/testapp/./script/server:2:in `load'

エラー内容から察するに、Active Support の dependencies.rb に問題があるようだ。
ObjectSpaceというのが怪しい。

調べてみたら Ruby Forum にこのようなトピックを発見。

これを元に、

/usr/local/bin/jruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb に下記の一行を追加してあげたら、うまく起動するようになった。

JRuby.objectspace=true

エラーは回避されたがいまいち原因と行った対策の是非が不明だ。。。ObjectSpace については少し調べてみないとな・・・