# Sinatra/jRuby/Glassfish app won't start

**URL:** <https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586>\
**Category:** JRuby\
**Created:** [January 14, 2010, 6:00am UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586 "2010-01-14T06:00:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaj135](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Post date:** [January 14, 2010, 6:00am UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586/1 "2010-01-14T06:00:37Z")

</div>

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](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?

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)

---

<div class="post-metadata">

**Author:** ![cmaj135](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Post date:** [January 14, 2010, 7:09am UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586/2 "2010-01-14T07:09:08Z")

</div>

On Wed, Jan 13, 2010 at 10:59 PM, Dan Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](http://gist.github.com/276708).

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

```

---

<div class="post-metadata">

**Author:** ![cmaj135](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Post date:** [January 14, 2010, 8:24am UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586/3 "2010-01-14T08:24:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cmaj135](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Post date:** [January 14, 2010, 10:25am UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586/4 "2010-01-14T10:25:11Z")

</div>

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](http://xircles.codehaus.org/manage_email)

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```

---

<div class="post-metadata">

**Author:** ![cmaj135](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@cmaj135](https://www.ruby-forum.com/u/cmaj135)\
**Post date:** [January 14, 2010, 8:54pm UTC](https://www.ruby-forum.com/t/sinatra-jruby-glassfish-app-wont-start/181586/5 "2010-01-14T20:54:00Z")

</div>

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  
🙂

On Thu, Jan 14, 2010 at 3:23 AM, Dan Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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

```
