Trouble with JRuby 1.3RC1

I’m looking at some issues deploying a jruby rails app to oc4j.

I can deploy fine but when I attempt to actually run the application
it throws an error and the following shows up in the log:

09/05/20 16:29:04 Warning: JRuby home
“/private/opt/oc4j_extended_101340/j2ee/home/applications/jruby/jrubytest/WEB-INF/lib/jruby-complete-1.3.0RC1.jar!/META-INF/jruby.home”
does not exist, using /tmp
09/05/20 16:29:09 Warning: JRuby home
“/private/opt/oc4j_extended_101340/j2ee/home/applications/jruby/jrubytest/WEB-INF/lib/jruby-complete-1.3.0RC1.jar!/META-INF/jruby.home”
does not exist, using /tmp
Rails requires RubyGems >= . Please install RubyGems and try again:
http://rubygems.rubyforge.org

The issue happens whether the gems are unpacked in vendor or included
in config.gems.

I am running on a Mac, with OC4J 10.1.3.4.0

java version “1.6.0_07”
Java™ SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot™ 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

The issue seems to be in JRuby 1.3RC1 only as JRuby 1.2 works fine
when I added jruby12.jar to lib/java and did the following in my
warble.rb

config.java_libs.reject! { |lib| lib =~ /jruby-complete/ }
config.java_libs += FileList[“lib/java/*.jar”]

Anyone have any clue? Am I doing anything wrong here? Could it be that
OC4J is messing with some classloader somewhere?

Pelle


http://agree2.com - Reach Agreement!
http://extraeagle.com - Solutions for the electronic Extra Legal world
http://stakeventures.com - Bootstrapping blog


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email