JRuby allows Ruby code to run on the Java Virtual Machine. Warbler is a gem that can package JRuby or Rack applications into WAR files to deploy on Java application servers like Tomcat. The document demonstrates using Warbler to create a WAR file for a simple Sinatra app, then deploying it directly to Tomcat. Practical examples are also given of deploying Rails apps in Tomcat with filters and writing Ruby libraries deployed as JAR files.