Sinatra/jRuby/Glassfish app won't start

Hi all,
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: GlassFish Error · GitHub.

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?

Thanks!


Environement Comparison:

  1. Glassfish gem is the same version (1.0.2) in both environments.

  2. jRuby is the same version (1.3.1) but i386 version on the server
    oddly? Probably doesn’t matter I guess.
    Server:

jruby --version

jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot™
Client VM 1.6.0_11) [i386-java]

Dev envionrment:
$jruby --version
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]

  1. Java versions are different minor versions:
    Server:

java -version

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)

Dev environment:
$ 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)

On Wed, Jan 13, 2010 at 10:59 PM, Dan Z. [email protected]
wrote:

Hi all,
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.

I think there have been some reports that the JRuby 1.3.1 ebuild isn’t
quite right. Is it possible for you to test with a hand-unpacked JRuby
instance, just to reduce it to the ebuild?

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:Â GlassFish Error · GitHub.

Am I right in understanding that there’s no additional information
available than what you have in that gist? No other logfiles being
written with data anywhere?

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?

It does sound like an EY specific problem at a glance. Trying a
vanilla JRuby archive on the same server would confirm it.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

glassfish gem 1.0.2 is tested well to work with Sinatra as well as
Rails,
Merb etc. I suspect it might be the java version on the server. It might
be
the JDK version.

GlassFish gem requires

For supported operating systems except MacOS, the minimum required
version is 1.6.0_17. However I have seen it work with 1.6 update 15
or 16 as
well.

For MacOS, the minimum required version is 1.6.0_15.

Is it possible for you to try JDK 1.6_17 on the server?

-vivek.

Outstanding… you were right, there must be an issue with the 1.3.1
ebuild. Hand unpacked the latest version and it fired right up. I should
have tried this in the first place, just didn’t expect that I guess.
Going to notify EngineYard so maybe they will modify their recipe making
this easier for others. Thanks.

  • Dan

On Jan 13, 2010, at 11:08 PM, Charles Oliver N. wrote:

quite right. Is it possible for you to test with a hand-unpacked JRuby

vanilla JRuby archive on the same server would confirm it.

  • Charlie

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

Great, thank you! The work will probably circle back around to us
anyway, but at least EY will know someone else ran into issues with it
:slight_smile:

On Thu, Jan 14, 2010 at 3:23 AM, Dan Z. [email protected]
wrote:

helpful but haven’t yet been able to resolve why this is occurring. The
complete version of the development.log generated when trying to start the
jRuby on EngineYard Cloud. Seems the best thing to try might be upgrading
To unsubscribe from this list, please visit:


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email