Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Java Tomcat with DB (PostgreSQL): JasperReports Server

This is a real Tomcat webapp to show how to deploy Tomcat+PostgreSQL applications using Bitnami Stacksmith.

The JasperReports Server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, and a dashboard feature for compiling multiple custom views.

For more information, please visit https://community.jaspersoft.com/.

Package and deploy with Stacksmith

  1. Go to stacksmith.bitnami.com
  2. Create a new application and select the Java Tomcat application with DB (PostgreSQL) stack template. Alternatively, you can also use MySQL
  3. Select the targets you are interested on (AWS,Kubernetes,...)
  4. Download the JasperReports bundle from the official site: JasperReports Server releases (i.e. TIB_js-jrs-cp_6.4.2_bin.zip) and upload it as application file
  5. Upload the build.sh and boot.sh scripts from the scripts/ folder
  6. Click the Create button
  7. Launch it in AWS, AZURE or download the helm chart to run it in Kubernetes
  8. Access your application: http://IP/jasperserver for AWS or http://IP:8080/jasperserver for Azure.

Scripts

There are two scripts to build and initialize this application:

build.sh

This script takes care of extracting the application. It performs the next steps:

  • Install required extra system packages
  • Uncompress the uploaded bundle
  • Prepare the configuration file default_master.properties
  • Deploy the webapp (.war file) in the tomcat directory

boot.sh

This script takes care of initializing the database and configuring the application: Basically, it does:

  • Update the Tomcat datasource with the actual values of the database connection
  • Initialize and populate the database
  • (Optional) Import fictitious sample data
  • Restart Tomcat to reload the new webapp