I posted this over at StackOverflow and got some help, but didnt solve
the
problem. Below is the original text:
========
I’m getting the following error when trying to use JRuby, Bundler, the
Glassfish gem, and Rails 2.3.9 in production:
Could not load the bundler gem. Install it with gem install bundler
No matter what I try, this happens. I deploy via capistrano, and the
bundle
gets created in the shared directory of the app. Bundler is installed
and I
can see it in gem env.
I’m starting the app via
cd #{current_path}; bundle exec glassfish -P
#{shared_path}/pids/glassfish.pid"
The server does start, but I get a “Something went wrong” when I go to
the
app URL.
As a work around you may want to try installing the glassfish gem in to
your system jruby, instead of the bundle. Then start it up with jruby
-S glassfish … instead of the bundle exec way.
I posted this over at StackOverflow and got some help, but didn’t solve
the problem. Below is the original text:
========
I’m getting the following error when trying to use JRuby, Bundler, the
Glassfish gem, and Rails 2.3.9 in production:
Could not load the bundler gem. Install it with gem install bundler
No matter what I try, this happens. I deploy via capistrano, and the
bundle gets created in the shared directory of the app. Bundler is
installed and I can see it in gem env.
I’m starting the app via
cd #{current_path}; bundle exec glassfish -P
#{shared_path}/pids/glassfish.pid"
The server does start, but I get a “Something went wrong” when I go to
the app URL.
After working through the suggestions, I came to this:
“If I turn off the daemon setting, the app doesn’t error on Bundler.”
Any ideas on why that would be the problem? If I don’t use the daemonize
setting, I’ll get the “Please wait while Glassfish loads the
application” screen.
I replied on the SO thread and I don’t have any new ideas except to
say that there’s a bug here somewhere either in Bundler, JRuby, or
Glassfish. Do you have the same problem with Trinidad or WEBrick?