This directory includes samples using JRuby-Rack to build Rack web applications for deployment into Java app servers.
- All use Warbler to do so for easy of packaging.
- Require JRuby
10.0and a compatible JVM (Java21->25).
For deployment into a separate webserver:
-
rm -f Gemfile.lock && bundle install && bundle exec warble war
- Drop the war into a relevant Java app server running a compatible JVM version
As an executable jar within Jetty:
-
rm -f Gemfile.lock && bundle install && bundle exec warble executable war
-
java -Dwarbler.debug=true -Dwarbler.port=8989 -jar *.war
You can run the examples using local source for warbler or jruby-rack by
- Uncommenting the relevant
path:suffixes in the example Gemfiles. - (For Warbler) Build from source first, since its booting jar files are not committed to source
- (For jruby-rack) Build from source first, since it does not define a gemspec