Mongodb install for JasperReports Server v4.5.x and v4.7.x

Purpose

JasperReports Server and iReport Designer v4.5.1 and earlier do not ship with built-in connectors to MongoDB. These resources are provided here in order to enable JasperReports Server to access MongoDB data.

Editions of JasperReports Server v4.7 and greater include official support for MongoDB, backed by Jaspersoft Support.

Summary

  1. Obtain and unzip MongoDB-connector-for-Jaspersoft-bin-xxx.zip
  2. Deploy the MongoDB plugin to iReport
  3. Create a report
  4. Deploy the query executer to JasperReports Server
  5. Deploy the report to JasperReports Server
  6. Run the report

Details

1. Obtain and unzip MongoDB-connector-for-Jaspersoft-bin-xxx.zip

Import note: These steps are only required if you have JasperReports Server v4.5.1 or below

Download it from the project release area. The following files are included:

  • plugin/MongoDbPlugin-0.11.nbm
  • WEB-INF/applicationContext-MongoDbDataSource.xml
  • WEB-INF/bundles/MongoDbDataSource.properties
  • WEB-INF/lib/mongo-java-driver-2.3.jar
  • WEB-INF/lib/MongoDbDatasource-0.11.jar

2. Deploy the MongoDB plugin to iReport

  1. Choose the menu Tools → Plugins.

Import note: These steps are only required if you have JasperReports Server v4.5.1 or below

  1. From the tab "Downloaded" add the plugin file MongoDbPlugin-xxx.nbm

  2. : After installing the plugin you must restart iReport.
  3. Click the button "Report Datasources" to define a new connection to MongoDB.

See Also

Feedback
randomness