Oc4j and rubygems

I am really hoping someone may be able to help. My jruby war file works
fine in glassfish on linux/win32

But under oc4j (or OAS/Oracle Application Server) on both platforms the
jar file cannot load rubygems

Rails requires RubyGems >= . Please install RubyGems and try again:
http://rubyg
ems.rubyforge.org

(It also complains that jruby-complete-1.3.0RC1.jar!/META-INF/jruby.home
does not exist - but i am not so sure this matters)

I can load rubygems directly from the jar file:

java -jar tmp\war\WEB-INF\lib\jruby-complete-1.3.0RC1.jar --command irb
irb(main):001:0> require ‘rubygems’
=> true

I can also load run:
jruby script/[console|server] with no problems.

Rails 2.3.3, (also tried 2.3.2); Rack 1.0.0; warbler 0.9.13;
jruby-complete-1.3.0RC1.jar

I have managed to create a cobbled together solution for this. I am
guessing that Rails 2.3.x and jruby is still (b)leading edge on oc4j.

I replaced the jruby-rack-0.9.4.jar in the warbler gem with an earlier
edition - jruby-rack-0.9.3.jar (place into
jruby-1.3.1\lib\ruby\gems\1.8\gems\warbler-0.9.13\lib.)

This allows the boot process to load the rubygems without a load error.

Rails 2.3.3
gave:
javax.servlet.ServletException: undefined method `new’ for
“Rack::Head”:String

So, i used Rails 2.3.2 and that fixed that…

Then
uninitialized constant ActionController::Session::JavaServletStore

so I had to follow
http://kenai.com/projects/jruby/pages/Rails_2_3_2