Jails is a project mainly written in Java, it's free.
This project provides the intial rails like framework support for java world
Jails is a framework like Rails, which is intended to provide the similar support of convention over configuration for the JAVA world.