This was not working for me, and I realized looking the the jruby-rack
code that RailsServletHelper has been replaced by RailsBooter in
version 0.9.5. From the jruby-rack code, it looks like replacing that
line with
JRuby::Rack.booter.load_environment
should work, but JRuby::Rack.booter is nil inside the startup script.
Does anyone know how to load the the environment in 0.9.5?
Thanks for the response. I needed the require, but that didn’t get me
the whole way there. The call to load_environment failed because @layout was not initialized for the booter. I added a call to boot!,
and then it started working. Here is the full listing for loading the
environment: