« Return to Thread: RubyGems Missing, frustation with Solaris CoolStack and Jruby

Re: RubyGems Missing, frustation with Solaris CoolStack and Jruby

by Matthew Kanwisher-2 :: Rate this Message:

Reply to Author | View in Thread

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



 « Return to Thread: RubyGems Missing, frustation with Solaris CoolStack and Jruby