I get ActiveSupport::StringInquirer when running rails application from inside Glassfish 3.0.1

Hi all I need some help here. I run a rails application from inside glassfish web application. sometime the same link can generate the below error and sometimes it works fine. The error below is taking from the glassfish server.log file. the rails application log does not print any error (it looks like it did not arrive to the rails application at all)

I thought that the problem is the memory that the glassfish use, so I increased that. and the problem still happens.

[#|2011-01-25T14:07:59.228+0000|SEVERE|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=49;_ThreadName=Thread-1;|WebModule[/Reports]Application Error /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant ActiveSupport::StringInquirer (NameError)   from /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies'   from /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/rails-2.3.8/lib/initializer.rb:56:in `env'   from /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:29:in `call'   from /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'   from /opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:106:in `call'   from classpath:/rack/adapter/rails.rb:36:in `serve_rails'   from classpath:/rack/adapter/rails.rb:41:in `call'   from classpath:/jruby/rack/rails.rb:188:in `call'   from classpath:/rack/handler/servlet.rb:19:in `call'   ...internal jruby stack elided...   from ActiveSupport::Dependencies.load_missing_constant(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80)   from ActiveSupport::Dependencies::ModuleConstMissing.const_missing_with_dependencies(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/rails-2.3.8/lib/initializer.rb:56)   from #<Class:01x4a543ea5>.env(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/actionpack-2.3.8/lib/action_controller/failsafe.rb:29)   from ActionController::Failsafe.call(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/rack-1.1.0/lib/rack/lock.rb:11)   from Rack::Lock.call(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/rack-1.1.0/lib/rack/lock.rb:11)   from Rack::Lock.call(/opt/glassfishv3/glassfish/domains/statsng/applications/Reports/WEB-INF/gems/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:106)   from ActionController::Dispatcher.call(classpath:/rack/adapter/rails.rb:36)   from Rack::Adapter::Rails.serve_rails(classpath:/rack/adapter/rails.rb:41)   from Rack::Adapter::Rails.call(classpath:/jruby/rack/rails.rb:188)   from JRuby::Rack::RailsRequestSetup.call(classpath:/rack/handler/servlet.rb:19)   from Rack::Handler::Servlet.call(:1)   from (unknown).(unknown)(:1)

#]

Thanks in advance

Regards, Mousa