Using JRuby 1.3.0 + Warbler 1.0.0
Created a template Rails application, warbled it up and deployed the WAR file on GlassFish v2.1. Got the error:
Caused by: org.jruby.rack.RackInitializationException: undefined method `new' for "Rack::Lock":String
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/middlewar
e_stack.rb:116:in `inject'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/middlewar
e_stack.rb:116:in `build'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/dispatche
r.rb:82:in `initialize'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/actionpack-2.3.2/lib/action_controller/dispatche
r.rb:52:in `run_prepare_callbacks'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:609:in `prepare_d
ispatcher'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:183:in `process'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/config/environment.rb:9
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/app
lications/j2ee-modules/helloworld/WEB-INF/config/environment.rb:26:in `load'
from /Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/gen
erated/jsp/j2ee-modules/helloworld/loader/jruby/rack/rails.rb:26:in `load_environment'
This error is also reported at:
http://kenai.com/projects/jruby-rack/lists/talk/archive/2009-05/message/2
Not aware of any workaround as well.
Using JRuby-Rack 0.9.13, gives the following error:
Caused by: org.jruby.exceptions.RaiseException: no such file to load – action_mailer
at Kernel.raise(/Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/cloud-nodeagent/c
abernet/applications/j2ee-modules/helloworld/WEB-INF/gems/gems/rails-2.3.2/lib/initializer.rb:269)
at Rails::Initializer.require_frameworks(/Users/arungupta/tools/glassfish/v2.1/glassfish/nod
eagents/cloud-nodeagent/cabernet/generated/jsp/j2ee-modules/helloworld/loader/jruby/rack/rails.rb:43
)
at Rails::Initializer.require_frameworks_with_servlet_env(/Users/arungupta/tools/glassfish/v
2.1/glassfish/nodeagents/cloud-nodeagent/cabernet/applications/j2ee-modules/helloworld/WEB-INF/gems/
gems/rails-2.3.2/lib/initializer.rb:134)
at Rails::Initializer.process(/Users/arungupta/tools/glassfish/v2.1/glassfish/nodeagents/clo
ud-nodeagent/cabernet/applications/j2ee-modules/helloworld/WEB-INF/gems/gems/rails-2.3.2/lib/initial
izer.rb:113)