Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Failed to load latest commit information.
src/main Add connection testing
.gitignore test web app for buildpack-tomcat README
pom.xml test web app for buildpack-tomcat

Test Web App for Tomcat Build Pack

This web app is a simple test web app for testing this Tomcat buildpack.


$ mvn package

Deploy to Heroku

See Tomcat buildpack for full instructions. You'll need a Heroku app with a database provisioned and promoted to DATABASE_URL and you'll need the anvil heroku CLI plugin:

$ heroku build target/my-webapp -r -b -a myapp


$ curl

should return Hello World.

$ heroku logs -a stormy-reef-2997

You should see this log line:

2012-08-06T16:28:48+00:00 app[web.1]: Detected DATABASE_URL. Configuring Java System properties: jdbc.url=...

which indicates that DATABASE_URL environment variable was read and parse correctly.

You should see:

2012-08-06T16:29:50+00:00 app[web.1]: INFO: SQL Connection Test: true

which indicates that the servlet connected successfully to the database.

Something went wrong with that request. Please try again.