Go to <JRUBY_HOME>/samples.
Deploy the hello application:
jruby -S glassfish_rails helloV3
When the GlassFish instance is finished launching, you should see output similar to the following:
INFO: Rails instance instantiation took : 37754ms
Run the application using the following URL in your web browser:
http://localhost:3000/home/index
You should now see the following message in your browser window:
Welcome to JRuby on Rails on the Sun GlassFish Enterprise Server!
Notice that the GlassFish v3 Gem runs on port 3000, not 8080.