I am trying to run a Sinatra app with jRuby/Glassfish on EngineYard’s
cloud platform using their custom chef recipe for jRuby. EngineYard has
been helpful but haven’t yet been able to resolve why this is occurring.
The problem is occurring even with a simple “hello world” app using
Sinatra OR Rails so it must be something wrong with the
Java/jRuby/Glassfish stack their recipe builds.
The problem is that when I try to start the simple “hello world” app
with glassfish (either in development or production mode) it errors out.
A complete version of the development.log generated when trying to start
the app is located here: http://gist.github.com/276708.
Under the similar setup on my local dev environment, all works fine. I
have pasted below the differences between my local system and the
EngineYard instance below. Has anyone seen this error before? I couldn’t
find anything applicable Googling but I can’t believe I’m the first one
who wants to run jRuby on EngineYard Cloud. Seems the best thing to try
might be upgrading Java, but the version installed is the latest package
available for Gentoo as far as I can tell. Any chance someone else can
tell what this error message is saying or what I should be trying?
Glassfish gem is the same version (1.0.2) in both environments.
jRuby is the same version (1.3.1) but i386 version on the server
oddly? Probably doesn’t matter I guess.
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot™
Client VM 1.6.0_11) [i386-java]
jruby 1.3.1 (ruby 1.8.6p287) (2010-01-11 6586) (Java HotSpot™ 64-
Bit Server VM 1.6.0_17) [x86_64-java]
- Java versions are different minor versions:
java version “1.6.0_11”
Java™ SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot™ Client VM (build 11.0-b16, mixed mode)
$ java -version
java version “1.6.0_17”
Java™ SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot™ 64-Bit Server VM (build 14.3-b01-101, mixed mode)