Forum: JRuby Trouble with JRuby 1.3RC1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C6c4b4870de94577ea868b4e46b4635e?d=identicon&s=25 Pelle Braendgaard (Guest)
on 2009-05-20 23:52
(Received via mailing list)
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(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 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
This topic is locked and can not be replied to.