I have rack 1.1.0 and rack 1.2.1 installed because I need to also run Rails 3 applications that require rack 1.2.1.
I use rails 2.3.x with bundle setup being loaded in the preinitializer as per bundler home page instructions.
I wish to start the rails application with glassfish in daemonized mode.
When starting glassfish directly, glassfish requires rack, and rack 1.2.1 is loaded. When glassfish starts the rails application, it requires rack 1.1.0, and fails.
When starting glassfish with "jruby -S bundle exec glassfish -d" the same happens for the damonized glassfish process.
When starting glassfish with "jruby -S bundle exec glassfish", without the -d option, it works fine, but the process is not daemonized, and no PID file is written. It seems the bundle setup is lost when the glassfish process is daemonized.
Is it possible to delay the loading of rack from glassfish until the preinitializer script in the application has been run?
This is biting us in production. Please help!