Warbler wants you to specify a RAILS_ENV when creating the WAR. This is then put inside the web.xml of the generated WAR.
However, if you could create a wAR that learned its RAILS_ENV from the environment, you could create one WAR that could be used for staging or production - in other words, a superior management regime where a WAR can be tested and then deployed without being changed.