On the problems with GoldSpike:
...in my own opinion it took the wrong approach to packaging Rails in a .war file. It puts the Rails application directory structure into the root of the .war file where any web server or Java application server might mistakenly serve up your code as static content. The Java .war file spec has this special directory called WEB-INF
expressly for the purpose of hiding that stuff away, so why not use it?...And then, suddenly Goldspike was packaging up my entire Rails application directory, .svn directories and everything. So I set out to fix this once and for all.
Warbler comes as a gem
and bundles the JRuby and the Goldspike servlet for dispatching requests to your application inside a Java application server; it assembles all jar files in WARBLER_HOME/lib/*.jar
into your application. Unlike Goldspike it won't download external dependencies.Warbler's simple command line interface and flexible configuration should make deployment of Rails application to JRuby on a JEE server easier. Warbler was written with 50% less code than the Goldspike packaging plugin.