Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Warbler: Rails Packaging for Java EE WAR files enhancement

Warbler: Rails Packaging for Java EE WAR files enhancement

Nick Sieger who is part of JRuby team worked on integrating latest JRuby v1.0.1 and Goldspike 1.3. Goldspike allows you to deploy your Rails application to JEE Servers. It is part of JRuby extras, a group of satellite projects which aim at filling the gap between JRuby and Ruby libraries.   Unsatisfied with the approach Goldspike takes to packaging the application, Nick decided to rewrite the Goldspike packaging plugin, and Warbler was born.

On the problems with GoldSpike: 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.
We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.