A minimal Rails 8 application to reproduce WAR deployment issues under JRuby 10 using Warbler.
This app serves as a reproduction case for issues encountered when generating and deploying .war files from a JRuby-based Rails 8 application using Warbler (latest main branch). See related issue:
- Ruby: JRuby 10.0.0.1 (Ruby 3.4.2)
- Java: OpenJDK 24.0.1
- Rails: 8.0.2
- Tomcat: 9.0.x (tested with 9.0.106)
- OS: macOS (Apple Silicon)
The key dependencies used:
rails: ~> 8.0.2activerecord-jdbcsqlite3-adapter: for JRuby and SQLitewarbler(from GitHub master)pumafor local developmentjbuilderandweb-consolefor convenience
To build the .war file:
rails warThis invokes Warbler via its Rake task and generates warbler_test.war in the project root. You can then deploy it to a servlet container like Tomcat.
- This app uses no custom config/warble.rb.
- The database is SQLite via JDBC (only activerecord-jdbcsqlite3-adapter is used on JRuby).
- No additional features or routes are defined—this is a minimal Rails welcome page app.
- Deployment to Tomcat currently fails due to a missing class error (org.jruby.CompatVersion) under JRuby 10, likely caused by outdated assumptions in jruby-rack or Warbler internals.