« Return to Thread: RubyGems Missing, frustation with Solaris CoolStack and Jruby
Well, that seems to be the root of the problem. Can you file a bug on
this? I'll see if I can reproduce on Solaris soon.
/Nick
On Thu, Jun 25, 2009 at 3:48 PM, Matthew Kanwisher<Matt@...> wrote:
> root@-s # java -jar
> /reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar -e "require
> 'rubygems'"
> -e:1:in `require': no such file to load -- rubygems (LoadError)
> from -e:1
> root@-s # java -jar
> /reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar --command irb
>
> irb(main):001:0> require 'rubygems'
> LoadError: no such file to load -- rubygems
> from (irb):2:in `require'
> from (irb):2
> irb(main):002:0> exit
> root@-s # java -version
> java version "1.6.0_01"
> Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
> Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
> UGH, that doesn't make sense, that runs fine on OSX :(
> ~Matt
> On Thu, Jun 25, 2009 at 4:39 PM, Nick Sieger <nicksieger@...> wrote:
>>
>> On Thu, Jun 25, 2009 at 2:34 PM, Matthew Kanwisher<Matt@...>
>> wrote:
>> > Yeah first thing thanks for all quick responses ;) The good or bad
>> > thing, is
>> > it appears to be a bug is 0.9.4, rolling back to 0.9.3 with jruby 1.2 or
>> > 1.3.1 seem to work fine. Only downside is here on my OSX workstation it
>> > works fine with either version, so it may only be easy to reproduce on
>> > Solaris Tomcat5. Also here is the debug info you asked for.
>> > LOAD_PATH
>> >
>> > file:/reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8file:/reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar!/META-INF/jruby.home/lib/ruby/site_rubyfile:/reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar!/META-INF/jruby.home/lib/ruby/1.8file:/reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar!/META-INF/jruby.home/lib/ruby/1.8/javalib/ruby/1.8.file:/reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-rack-0.9.4.jar!
>> > ENV['GEM_PATH']
>> > /reuters/coolstack/tomcat5/webapps/something/WEB-INF/gems
>>
>> These values seem to be ok -- they have the correct RubyGems location
>> in them
>> (file:/reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8).
>> So then the problem would seem to be that JRuby is unable to read
>> entries out of that jar file on Solaris? Strange indeed.
>>
>> Can you show the output of this on Solaris:
>>
>> java -jar /reuters/coolstack/tomcat5/common/lib/jruby-complete-1.3.1.jar
>> -e "require 'rubygems'"
>>
>> If it shows an exception, then that's at least narrowing our problem.
>>
>> > If this doesn't give any clues, I'm going to try and pair down a simpler
>> > rails app to see how can I reproduce it.
>>
>> Thanks, that would be great. I do have an OpenSolaris VM I can try
>> stuff in, but I still find it odd that it would work on OS X and not
>> Solaris. After all, it's just Java™ (/me moves out of way of lightning
>> strike).
>>
>> /Nick
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
« Return to Thread: RubyGems Missing, frustation with Solaris CoolStack and Jruby
| Free embeddable forum powered by Nabble | Forum Help |