Deploying JasperReports

From PTAGISWiki

Jump to: navigation, search

Jasper Reports

Progress with deploying and testing a new Java graphical report engine to replace StyleReport.

download and install

It isn't immediately apparent what components we need. I chose to download and install jasperserver 3.0. It unpacks in /opt and listens on http://hostname:8080/jasperserver

The download page is here: http://sourceforge.net/project/showfiles.php?group_id=36382

jasperserver-3.0-linux-installer.bin
jasperserver-3.0.0-docs.zip
jasperreports-flash-3.0.0.swf
jasperreports-3.1.2.jar               
jasperreports-3.1.2-project.tar 

The documentation package includes this:

JasperServer-Install-Guide.pdf
JasperServer-Localization-Guide.pdf
JasperServer-Source-Build-Guide.pdf
JasperServer-User-Guide.pdf
JasperServer-Web-Services-Guide.pdf

If you use the bundled tomcat and the bundled mysql server, it starts right up and works out of the box with no worries.

The demo reports are awfully boring. Not a single chart as far as I can see.

configuration

The first step toward testing with PTAGIS data is to create a new datasource, but that requires that tomcat and jasperreports know about the ingres JDBC driver.

cp /opt/Ingres/ing2006r2/ingII/ingres/lib/iijdbc.jar  /opt/jasperserver-3.0/apache-tomcat/common/lib
  • restart
./jasperctl.sh stop
./jasperctl.sh start

Testing the connection fails... there must be something else required to create a new datasource.

However, using the iReport designer tool, I was able to easily generate a report and it already knew about my blueback and sockeye data connections. iReport doesn't start properly if you follow the directions in the user guide, but it does start if you do this:

 /opt/jasperserver-3.0/ireport/bin/startup.sh

Taking a test report that I generated in iReport and then trying to deploy it to jasperserver ends in a java stacktrace. It still can't see the datasource from within jasperserver.

Personal tools