A working example setting up Tomcat 7 on Heroku
Switch branches/tags
Nothing to show
Latest commit 7f7e04b Jun 26, 2012 @soulgalore typeos
Failed to load latest commit information.
src/main/webapp better explaining text Apr 3, 2012
.gitignore ignore Apr 3, 2012
Procfile first commit Apr 3, 2012
README.md typeos Jun 26, 2012
pom.xml first commit Apr 3, 2012


Example project for deploying Tomcat on Heroku

This is an example setup to run Tomcat on Heroku. Now it uses the webapp-runner from jsimone.

Running it local

mvn clean install

java -jar target/dependency/webapp-runner.jar target/*.war

Running within Eclipse



  1. Checkout this project
  2. Add it to Heroku heroku create --stack cedar
  3. Rename your project to whatever name you want, in this example we will use tomcat-tst heroku rename tomcat-tst
  4. Add the Heroku as a remote git remote add heroku git@heroku.com:tomcat-tst.git
  5. Push it: git push heroku master
  6. Access your application: http://tomcat-tst.herokuapp.com/


  • Adding servlet with right expire header
  • Add explanation of setup
  • Add gzip for java pages through servlet.xml