heroku-glassfish-4 This is a basic project to use GlassFish 4.0 in heroku. Just git push it to your heroku app. Then test http://your-app.herokuapp.com/api/hello/msg Live demo: http://heroku-glassfish-4.herokuapp.com/api/hello/message