Super-Simple App Won't Deploy on GlassFish

I can’t find a Gemset that actually works to deploy a Rails app on
GlassFish.

Warbler 1.3.2 has a known issue where the Gemset file can’t be found,
and
1.3.3 apparently has has its own set of issues. I’ve hacked
/META-INF/init.rb directly so Gemfile can be found.

ENV[‘BUNDLE_GEMFILE’] =
‘/home/glassfish/glassfish/domains/domain1/applications/probs/WEB-INF/Gemfile’

Every combination of Gem versions (Rails/Jruby 1.8 mode/Jruby 1.9
mode/Sprockets/Warbler/ActionPack) seems to have an endless series of
bugs
to work through, and it’s hopeless for me, a noob to the whole Ruby
landscape, to figure it all out.

Please, someone take pity on me, and help me get this worked out. I’ve
been
struggling with this for a week and a half, and stakeholder patience is
gone. Not your problem, but you get you get a big bear hug if you help
me
out.

Current issue (full stack trace here: http://pastebin.com/2KSJv36G):

NoMethodError: undefined method `relative_url_root=’ for
ActionController::Base:Class
send at org/jruby/RubyKernel.java:2097

Here is the war with the tweaked WEB-INF/init.rb:

http://dl.dropbox.com/u/2744016/probs.war

Here is the source code, which was generated with a simple rails new and
a
new rails controller:

http://dl.dropbox.com/u/2744016/probs.zip

So what’s the winning combo?

(Did I mention heeeeellllllpppp?!?!)

Thanks,
Jamie

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs