I’ve worked in several projects with Java, specially Java web using Tomcat as a web container and then Glassfish as application server.
Lastly I’m working in Java projects deployed on Heroku, an amazing platform acquired by Salesorce.
I faced many problems configuring deployment, JPA with Tomcat, oauth Salesforce flow, etc. so I decided to gather them in a template: