With RVM, and maybe other situations, we see this kind of thing:
$ java -jar app.war -S script/rails c
Loading production environment (Rails 3.2.12)
jruby-1.7.4.dev :001 > JRUBY_VERSION
jruby-1.7.4.dev :002 > IRB.conf[:PROMPT_MODE]
Basically, its picks up the RVM .irbrc configuration, which thinks our JRuby runtime is the RVM ruby in use. But actually we are using the JRuby inside of the WAR.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.