BIRT Viewer in Tomcat
BIRT is a powerful and open source reporting tool in java
and its easy and compatible.
To install BIRT viewer firstly we should have tomcat server,
if you don’t have please download the tomcat from https://tomcat.apache.org/download-80.cgi
and it’s better to use a binary distribution rather installer.
After configuring tomcat, we should download the birt
viewer.
And Download the file under “Report Engine OSGi Deployment”
file named
birt-runtime-osgi-4.6.0-20160607.zip
birt-runtime-osgi-4.6.0-20160607.zip
After successful download of the file, Unzip the file and
you can see all the files as below.
Steps to be down after downloading the file.
1.
Now the birt.war file should be copied into
tomcat webapps.
2.
And copy the jar files into tomcat lib.
If you are using mysql database, you should
put mysql-connector-java-5.1.30.jar
If you are using mongodb database so you should
put mongodb-driver-3.3.0.jar
Finally, we should copy commons-logging-1.2.jar
3.
We should unzip the birt.war and place in a
folder of the name you want. Here I placed in birt folder.
4.
For Mongo DB users We should go to apache-tomcat-7.0.42\webapps\birt\WEB-INF\platform\plugins
and need to remove org.eclipse.birt.data.oda.mongodb_4.6.0.v201606072122.jar
and need to update the new one with mongo-java-driver-2.13.1.jar
And that’s it the configuration has been done.
Now we need to check the birt in tomcat.
1.
Go to tomcat bin directory and start the tomcat by
using startup batch file.
2.
And open the browser and type in http://localhost:8080/birt/
3.
You can see the page as below.
4.
So, birt has been installed in tomcat now.
5.
And we can check the sample report by clicking
on the link View Example on the same page we can see
6.
Now we will check the report which we have made in
eclipse. So, we should place our files in the tomcat/weapps/birt/test1.rptdesign
7.
Now, in browser http://localhost:8080/birt/frameset?__report=test1.rptdesign
Now you can see the report
8.
Now we can place as many reports as we want and
see on the server also.
Happy Coding with BIRT… Enjoy!!
No comments:
Post a Comment