Template of Java web and Heroku

Posted on Jul 31, 2020

featured image

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:


  • Java 8
  • Maven 3
  • JSF 2.2.7 for presentation
  • Primefaces 6.1 for presentation
  • JPA 2.1
  • Hibernate 5.2.10
  • Netbeans 8.2
  • Force.com Partner API for Salesforce communication
  • GSON 2.8.0 for serializing / parsing json
  • Postgres SQL for persistence
  • Apache httpcode 4.4 for doing http requests
Full source code: https://github.com/andrescanavesi/java-web-heroku-template

Photo by Danielle MacInnes on Unsplash

java heroku tomcat dev
Side Widget
You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!