Showing posts with label BIRT. Show all posts
Showing posts with label BIRT. Show all posts

Friday, September 27, 2013

Installing BIRT in STS



1) Install STS 

2) Click on help -
Install New Software --> Click on Add
-> give the URL (http://download.eclipse.org/birt/update-site/4.2/)

3) Select the BIRT components you want to install--> click Next and follow the instructions such as accept terms and conditions.

4) Click on Finish, it will start installing the BIRT components.

5) It is getting installed successfully and we can see the version details on the following path: Help-
About STS
-> click on Eclipse BIRT Project

Thursday, October 4, 2012

Integrating BIRT in Eclipse




Download mysql-connector-java-5.1.22-bin.jar and put it in birt3.7/web-inf/lib folder.

Copy the lib jars from /WebViewExample/Web-Inf/lib to my application web-inf/lib directory.
Select all jar files in lib folder and select 'add in build path option' in Eclipse IDE.

Copy the viewer.properties file directly under WEB-INF.

Create the platform folder in my WEB-INF directory in Eclipse project.

Copy webcontent folder from BIRT Runtime to webapp folder in Eclipse project.

Copy server-config.wsdd from birt<version>Runtime/web-inf to Eclipse project WEB-INF folder.


Put test.rptdesign report files directly under the webapp/reportforms folder in Eclipse project.


Add following lines in web.xml of the Eclipse application project:-

<servlet>
<servlet-name>EngineServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.BirtEngineServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ViewerServlet</servlet-name>
<servlet-class>org.eclipse.birt.report.servlet.ViewerServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>ImageServlet</servlet-name>
<servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ImageServlet</servlet-name>
<url-pattern>/image</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/frameset</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>ViewerServlet</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/preview</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/download</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/parameter</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/output</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>EngineServlet</servlet-name>
<url-pattern>/extract</url-pattern>
</servlet-mapping>

Build, Deploy the project and open in browser to test.

Download BIRT from this link:-
http://www.eclipse.org/birt/phoenix/