RubyGems Missing, frustation with Solaris CoolStack and Jruby

View: New views
12 Messages — Rating Filter:   Alert me  

RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Matthew Kanwisher-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm having growing doubts about Solaris Coolstack tomcat, it has a lot of weird timing issues with Jruby. Were seeing an issue where 'sometimes' when you startup tomcat it will give you this error : Rails requires RubyGems >= . Please install RubyGems and try again: http://rubygems.rubyforge.org . Without changing any configs or anything in the exploded war, I can start the server and sometimes it works and sometimes it won't start. I even tried to move the jruby-complete jar into Tomcat's common/lib folder so it would get loaded before rack. Is there any way that the core Jruby included files like rubygems isn't getting loaded before Rack loads up the boot.rb ?


Guess I'm not the only one seeing stuff like this

Also we didn't see this in Jruby 1.2.0 and Rack 0.9.3

Solaris 10, coolstack tomcat5, Jruby 1.3.1, Rack 0.9.4

~Matt

Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 25, 2009 at 12:01 PM, Matthew Kanwisher<Matt@...> wrote:

> I'm having growing doubts about Solaris Coolstack tomcat, it has a lot of
> weird timing issues with Jruby. Were seeing an issue where 'sometimes' when
> you startup tomcat it will give you this error : Rails requires RubyGems >=
> . Please install RubyGems and try again: http://rubygems.rubyforge.org .
> Without changing any configs or anything in the exploded war, I can start
> the server and sometimes it works and sometimes it won't start. I even tried
> to move the jruby-complete jar into Tomcat's common/lib folder so it would
> get loaded before rack. Is there any way that the core Jruby included files
> like rubygems isn't getting loaded before Rack loads up the boot.rb ?
>
> Guess I'm not the only one seeing stuff like this
> http://www.ruby-forum.com/topic/187213
> Also we didn't see this in Jruby 1.2.0 and Rack 0.9.3
> Solaris 10, coolstack tomcat5, Jruby 1.3.1, Rack 0.9.4

So, rubygems is included inside jruby-complete.jar, but may not
visible if the initial load path is not setup properly. I suspect the
problem is with JRuby-Rack 0.9.4, but I'd have to bisect to be sure.
Do you suspect the problem exists for any Rails app with Tomcat 5 and
JRuby-Rack 0.9.4? Trying to come up with the combination that produces
the error, so I can bisect back to figure out what causes the issue.
At first glance I have a hard time seeing how Solaris could be part of
the equation.

Also, can you try doing "puts *$LOAD_PATH" and "puts ENV['GEM_PATH']"
at the top of config/boot.rb to see what those values are? (You may
also try "$servlet_context.log" instead to force the output to
Tomcat's catalina.out.

/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Matthew Kanwisher-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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. 

~Matt

On Thu, Jun 25, 2009 at 3:03 PM, Nick Sieger <nicksieger@...> wrote:
On Thu, Jun 25, 2009 at 12:01 PM, Matthew Kanwisher<Matt@...> wrote:
> I'm having growing doubts about Solaris Coolstack tomcat, it has a lot of
> weird timing issues with Jruby. Were seeing an issue where 'sometimes' when
> you startup tomcat it will give you this error : Rails requires RubyGems >=
> . Please install RubyGems and try again: http://rubygems.rubyforge.org .
> Without changing any configs or anything in the exploded war, I can start
> the server and sometimes it works and sometimes it won't start. I even tried
> to move the jruby-complete jar into Tomcat's common/lib folder so it would
> get loaded before rack. Is there any way that the core Jruby included files
> like rubygems isn't getting loaded before Rack loads up the boot.rb ?
>
> Guess I'm not the only one seeing stuff like this
> http://www.ruby-forum.com/topic/187213
> Also we didn't see this in Jruby 1.2.0 and Rack 0.9.3
> Solaris 10, coolstack tomcat5, Jruby 1.3.1, Rack 0.9.4

So, rubygems is included inside jruby-complete.jar, but may not
visible if the initial load path is not setup properly. I suspect the
problem is with JRuby-Rack 0.9.4, but I'd have to bisect to be sure.
Do you suspect the problem exists for any Rails app with Tomcat 5 and
JRuby-Rack 0.9.4? Trying to come up with the combination that produces
the error, so I can bisect back to figure out what causes the issue.
At first glance I have a hard time seeing how Solaris could be part of
the equation.

Also, can you try doing "puts *$LOAD_PATH" and "puts ENV['GEM_PATH']"
at the top of config/boot.rb to see what those values are? (You may
also try "$servlet_context.log" instead to force the output to
Tomcat's catalina.out.

/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Matthew Kanwisher-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Nick Sieger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Matthew Campbell-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alright I tried to write up a sensible bug report then things just get wierder, I was able to reproduce it on another box. But the behavior is more interesting, on both machines if I run the command from "/" root it exceptions, but if I run it from another folder like say "/tmp" its all fine. Same thing happened on both solaris boxes.

First box:
root@ri-dev1 # pwd
/tmp
root@dev1 #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.2.0.jar -e "require 'rubygems'"
root@dev1 # cd /
root@dev1 #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.2.0.jar -e "require 'rubygems'"
-e:1:in `require': no such file to load -- rubygems (LoadError)
        from -e:1


Second box:


root@-s # pwd
/
root@-s #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/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 # 
root@-s # cd /tmp/
root@-s #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.3.1.jar -e "require 'rubygems'"
root@-s # 

Perhaps it can't create temp files if you run from root, no idea ;/



On Thu, Jun 25, 2009 at 5:18 PM, Nick Sieger <nicksieger@...> wrote:
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




Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jun 26, 2009 at 4:39 PM, Matthew Campbell<hyper@...> wrote:
> Alright I tried to write up a sensible bug report then things just get
> wierder, I was able to reproduce it on another box. But the behavior is more
> interesting, on both machines if I run the command from "/" root it
> exceptions, but if I run it from another folder like say "/tmp" its all
> fine. Same thing happened on both solaris boxes.

A couple thoughts:

1. In a different, writable directory (not /tmp), do you see it drop
any temporary files?
2. Could it be that it simply calculates a path or jruby.home
incorrectly from the "/" location?

The basic logic here is that it will try to find a "real" JRuby home,
and failing that it will use something bogus and fall back on
classloader resources. That needs to be unified a bit better, but the
fact that it fails in root makes me think that the bogus dir it's
trying to set up interferes with it seeing in-jar resources somehow.

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by manalang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I wrote up this bug (http://kenai.com/jira/browse/JRUBY_RACK-16) for jruby-rack last week but I think it's actually related to this issue.

Today, I'm testing one of my apps in Weblogic 10.3 and I'm getting a similar stack trace that's described in -> http://groups.google.com/group/jruby-users/browse_thread/thread/6b5550240e2b01d1 , but I also get the following in the admin console logs:

Warning: JRuby home "/Users/richmanalang/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/stage/connect/connect.war/WEB-INF/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home" does not exist, using /var/tmp/.  I unzipped jruby-complete-1.2.0.jar and verified that META-INF/jruby.home exists.

Rich

On Fri, Jun 26, 2009 at 2:39 PM, Matthew Campbell <hyper@...> wrote:
Alright I tried to write up a sensible bug report then things just get wierder, I was able to reproduce it on another box. But the behavior is more interesting, on both machines if I run the command from "/" root it exceptions, but if I run it from another folder like say "/tmp" its all fine. Same thing happened on both solaris boxes.

First box:
root@ri-dev1 # pwd
/tmp
root@dev1 #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.2.0.jar -e "require 'rubygems'"
root@dev1 # cd /
root@dev1 #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.2.0.jar -e "require 'rubygems'"
-e:1:in `require': no such file to load -- rubygems (LoadError)
        from -e:1


Second box:


root@-s # pwd
/
root@-s #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/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 # 
root@-s # cd /tmp/
root@-s #  java -jar /reuters/coolstack/tomcat5/webapps/something/WEB-INF/lib/jruby-complete-1.3.1.jar -e "require 'rubygems'"
root@-s # 

Perhaps it can't create temp files if you run from root, no idea ;/



On Thu, Jun 25, 2009 at 5:18 PM, Nick Sieger <nicksieger@...> wrote:
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





Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 14, 2009 at 7:29 AM, Rich Manalang<rich.manalang@...> wrote:

> I wrote up this bug (http://kenai.com/jira/browse/JRUBY_RACK-16) for
> jruby-rack last week but I think it's actually related to this issue.
>
> Today, I'm testing one of my apps in Weblogic 10.3 and I'm getting a similar
> stack trace that's described in ->
> http://groups.google.com/group/jruby-users/browse_thread/thread/6b5550240e2b01d1
> , but I also get the following in the admin console logs:
>
> Warning: JRuby home
> "/Users/richmanalang/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/stage/connect/connect.war/WEB-INF/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home"
> does not exist, using /var/tmp/.  I unzipped jruby-complete-1.2.0.jar and
> verified that META-INF/jruby.home exists.

Prior to JRuby 1.3, if the jruby home could not be located, JRuby
would try to *create it*. This was obviously wrong, and now it falls
back to using the system tmp dir. In this case, it looks like it's
trying to get access to a filesystem path that does not exist (that
long path of yours is not a jar URL, so it's trying to use the
filesystem), and where it might have created that path before it's now
warning you and falling back on a known existing location.

Does this affect the functionality of your app?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by manalang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It prevents my app from starting up.  I'll try jruby 1.3.1 and report back.  One thing, /WEB-INF/lib/jruby-
complete-1.2.0.jar!/META-INF/jruby.home is not a jar path?!?


On Tue, Jul 14, 2009 at 9:06 AM, Charles Oliver Nutter <headius@...> wrote:
On Tue, Jul 14, 2009 at 7:29 AM, Rich Manalang<rich.manalang@...> wrote:
> I wrote up this bug (http://kenai.com/jira/browse/JRUBY_RACK-16) for
> jruby-rack last week but I think it's actually related to this issue.
>
> Today, I'm testing one of my apps in Weblogic 10.3 and I'm getting a similar
> stack trace that's described in ->
> http://groups.google.com/group/jruby-users/browse_thread/thread/6b5550240e2b01d1
> , but I also get the following in the admin console logs:
>
> Warning: JRuby home
> "/Users/richmanalang/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/stage/connect/connect.war/WEB-INF/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home"
> does not exist, using /var/tmp/.  I unzipped jruby-complete-1.2.0.jar and
> verified that META-INF/jruby.home exists.

Prior to JRuby 1.3, if the jruby home could not be located, JRuby
would try to *create it*. This was obviously wrong, and now it falls
back to using the system tmp dir. In this case, it looks like it's
trying to get access to a filesystem path that does not exist (that
long path of yours is not a jar URL, so it's trying to use the
filesystem), and where it might have created that path before it's now
warning you and falling back on a known existing location.

Does this affect the functionality of your app?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Not without a URL protocol at the beginning...if it were being used as
a jar URL there should have been a file:// or something. There
certainly could be a bug in how we're handling jruby home from within
the complete jar, at least in this case..

I assume the path to the complete jar exists at least, right?

On Tue, Jul 14, 2009 at 12:25 PM, Rich Manalang<rich.manalang@...> wrote:

> It prevents my app from starting up.  I'll try jruby 1.3.1 and report back.
> One thing, /WEB-INF/lib/jruby-
> complete-1.2.0.jar!/META-INF/jruby.home is not a jar path?!?
>
>
> On Tue, Jul 14, 2009 at 9:06 AM, Charles Oliver Nutter <headius@...>
> wrote:
>>
>> On Tue, Jul 14, 2009 at 7:29 AM, Rich Manalang<rich.manalang@...>
>> wrote:
>> > I wrote up this bug (http://kenai.com/jira/browse/JRUBY_RACK-16) for
>> > jruby-rack last week but I think it's actually related to this issue.
>> >
>> > Today, I'm testing one of my apps in Weblogic 10.3 and I'm getting a
>> > similar
>> > stack trace that's described in ->
>> >
>> > http://groups.google.com/group/jruby-users/browse_thread/thread/6b5550240e2b01d1
>> > , but I also get the following in the admin console logs:
>> >
>> > Warning: JRuby home
>> >
>> > "/Users/richmanalang/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/stage/connect/connect.war/WEB-INF/lib/jruby-complete-1.2.0.jar!/META-INF/jruby.home"
>> > does not exist, using /var/tmp/.  I unzipped jruby-complete-1.2.0.jar
>> > and
>> > verified that META-INF/jruby.home exists.
>>
>> Prior to JRuby 1.3, if the jruby home could not be located, JRuby
>> would try to *create it*. This was obviously wrong, and now it falls
>> back to using the system tmp dir. In this case, it looks like it's
>> trying to get access to a filesystem path that does not exist (that
>> long path of yours is not a jar URL, so it's trying to use the
>> filesystem), and where it might have created that path before it's now
>> warning you and falling back on a known existing location.
>>
>> Does this affect the functionality of your app?
>>
>> ---------------------------------------------------------------------
>> 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