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:

(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;

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

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

Rails 2.3.3
javax.servlet.ServletException: undefined method `new’ for

So, i used Rails 2.3.2 and that fixed that…

uninitialized constant ActionController::Session::JavaServletStore

so I had to follow

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs