How to obtain the context path in a Jruby app on Tomcat?

Try Rails.public_path