users@glassfish.java.net

Glassfish on Rails 2.3.4

From: Joseph Weissman <joseph.weissman_at_smartbt.com>
Date: Sat, 26 Sep 2009 16:49:00 -0400

Glassfish Team,

Thanks for the followup! The issue I'm having running Rails 2.3.4 on
Glassfish, again, seems to be related to the Jruby implementation of Rack.

I'm able to 'deploy' my (vanilla Rails) application without issue, but as
soon as I attempt to launch it I'm greeted with the cheerful "We're sorry,
but something went wrong!" in the browser. The exception which is thrown in
the Glassfish console is as follows:

.../my_app/WEB-INF/gems/gems/actionpack-2.3.4/lib/action_controller/middlewa
re_stack.rb:72 in 'build': undefined method 'new' for "Rack::Head":String
(NoMethodError)

As far as my environment, I'm running Rails 2.3.4 on Glassfish v2.1 Prelude,
JRuby v1.2.0 (with Rack 1.0.0 installed inside it), and building .wars with
Warbler v0.9.14. (As far as I know, these should be latest versions of
each.)

It's a nearly-empty Rails application, so I figured (logically or not) that
someone else must have tried this already, and run into similar problems.

Note the application runs just fine using 'jruby -S script/server'...

Cordially,

 

Joseph Weissman

Programmer Analyst

 

Office: (866) 455 4100

Personal: (770) 363 8723

E-mail: joseph.weissman_at_smartbt.com

 

Smart Business Technology, Inc.

655 Hembree Parkway, Suite G

Roswell, GA 30076


-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder_at_gmail.com]
Sent: Saturday, September 26, 2009 3:10 PM
To: users_at_glassfish.dev.java.net
Subject: Re: Glassfish on Rails 2.3.4

On Sat, Sep 26, 2009 at 11:36 AM, Joseph Weissman

> However, we've been having some trouble getting .war files deploying
> to GF using Rails 2.3.4. (It seems as though JRuby's version of Rack
> has some
> issues?) At any rate we've tried several suggestions and patches but
> are nevertheless no closer to getting a 2.3.4 Rails app deploying on
Glassfish.

> We were hoping that these issues had already been encountered

Lacking perfect mind-reading ability, I, at least, would find it helpful if
you'd describe exactly what "issues" you're having. :-)

You might also want to tell us the versions of JRuby, jruby-rack, and
warbler (assuming that's what you're using to build your war files), plus
anything else relevant to your environment.

--
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.99/2372 - Release Date: 09/26/09
05:51:00