Skip to main content



      Home
Home » Archived » BIRT » How do I use the Report Engine bundled in a war, not 'installed' separately on the system?
How do I use the Report Engine bundled in a war, not 'installed' separately on the system? [message #181326] Mon, 31 July 2006 10:58 Go to next message
Eclipse UserFriend
Originally posted by: Scott.Merrick.digilore.com

Hello,

OK I have successfully gotten my web application to use the BIRT Report
Engine to create reports using the Report Engine copied ('installed') to
a folder on my system.

I would prefer to have it as part of the web application. But I am
having trouble finding examples to see how this is done

The BIRT Viewer web application (Birt.war contained in the
birt-runtime-2_1_0) is exactly what I want to do, bundle the Reporting
Engine in the web application preventing the need to 'install' the
Report Engine to the local file system
However have tried to find the code for the WebViewerExample and I don't
know where to look.

I see that the required libs and the 'platform' (contains the eclipse
plugins etc...) are placed in the WEB-INF dir but what do I use for the
config.setEngineHome?

With the Report Engine 'installed' in a folder on my system I use the
following code to init the report system
....
if( rptEngine == null ){
EngineConfig config = new EngineConfig();
config.setEngineHome("C:/Development/BIRTStuff/birt-runtime-2_1_0/ReportEngine ");
rptEngine = new ReportEngine( config );
}
....
With the Engine bundled in my application war what do I use?

What else do I need to do to get this to work??

Thanks for your time.

Scott Merrick
Re: How do I use the Report Engine bundled in a war, not 'installed' separately on the system? [message #181414 is a reply to message #181326] Mon, 31 July 2006 22:44 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------050708030406020006060301
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Scott,

I did this a while back and had to get some help from Jason Weathersby
who gave me the following info and it works (I have attached his zip to
this post as well).

The following is quoted from Jason W.:

Attached is an example of a servlet that i modified to use for 2.1.
You will notice i set birt home to "" (this is key) and the engine is a
singleton. The directory structure under Webapps looks something like

Webapps
WebReport (my example app)
Images
Reports
WEB_INF
lib
platform
plugins
configuration.

1 - Create the platform directory and copy the
ReportEngine/configuration and ReportEngine/plugins folders from the
runtime into this directory.
2 - Copy all the jars in the birt-runtime-2_1_0/ReportEngine/lib
directory from the Report Engine download into your WEB-INF/lib
3 - Copy itext jar to the platform/plugins folder under the lowagie plugin
4 - Copy the JDBC driver to the JDBC plugin under platform/plugins

So basically you copy the pertinent parts of the BIRT example web app
into your own project keeping the deployment structure the same. I also
found that it was helpful to add some of the context-param entries found
in the example web.xml file to my own web.xml file. What jason provided
me with should get you started in the right direction.

Good Luck,
Zeb.


Scott Merrick wrote:
> Hello,
>
> OK I have successfully gotten my web application to use the BIRT Report
> Engine to create reports using the Report Engine copied ('installed') to
> a folder on my system.
>
> I would prefer to have it as part of the web application. But I am
> having trouble finding examples to see how this is done
>
> The BIRT Viewer web application (Birt.war contained in the
> birt-runtime-2_1_0) is exactly what I want to do, bundle the Reporting
> Engine in the web application preventing the need to 'install' the
> Report Engine to the local file system
> However have tried to find the code for the WebViewerExample and I don't
> know where to look.
>
> I see that the required libs and the 'platform' (contains the eclipse
> plugins etc...) are placed in the WEB-INF dir but what do I use for the
> config.setEngineHome?
>
> With the Report Engine 'installed' in a folder on my system I use the
> following code to init the report system
> ...
> if( rptEngine == null ){
> EngineConfig config = new EngineConfig();
> config.setEngineHome("C:/Development/BIRTStuff/birt-runtime-2_1_0/ReportEngine ");
> rptEngine = new ReportEngine( config );
> }
> ...
> With the Engine bundled in my application war what do I use?
>
> What else do I need to do to get this to work??
>
> Thanks for your time.
>
> Scott Merrick


--------------050708030406020006060301
Content-Type: application/x-zip-compressed;
name="WebReport.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="WebReport.zip"

UEsDBAoAAAAAAAClzjQAAAAAAAAAAAAAAAAKAAAAV2ViUmVwb3J0L1BLAwQU AAAACAAApc40
drh1uGgBAABXCAAAFAAAAFdlYlJlcG9ydC8uY2xhc3NwYXRozZZLSwMxEMfP Cn6HJfdkX1aK
dC2yVlBBYa3nJc2mbWoeSzJb67c3VUsfoB7EICGHScL8/snMJBkMV0pGS26d MLpAKUlQxDUz
jdCzAj2Nr3EfDS9OjgdMUudaCnNvHG0trsG+Rs9CNwVylqFoPVggFH+9j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5qYXZhUEsFBgAAAAAIAAgAIwIAAI0dAAAAAA==
--------------050708030406020006060301--
Re: How do I use the Report Engine bundled in a war, not 'installed' separately on the system? [message #182831 is a reply to message #181414] Fri, 04 August 2006 11:30 Go to previous message
Eclipse UserFriend
BTW, I have added some examples on the Eclipse Wiki.
http://wiki.eclipse.org/index.php/BIRT_Report_Engine_API

Jason

"Zeb Olaf" <zebonebo@gmail.com> wrote in message
news:eamf5t$f18$1@utils.eclipse.org...
> Scott,
>
> I did this a while back and had to get some help from Jason Weathersby
> who gave me the following info and it works (I have attached his zip to
> this post as well).
>
> The following is quoted from Jason W.:
>
> Attached is an example of a servlet that i modified to use for 2.1.
> You will notice i set birt home to "" (this is key) and the engine is a
> singleton. The directory structure under Webapps looks something like
>
> Webapps
> WebReport (my example app)
> Images
> Reports
> WEB_INF
> lib
> platform
> plugins
> configuration.
>
> 1 - Create the platform directory and copy the
> ReportEngine/configuration and ReportEngine/plugins folders from the
> runtime into this directory.
> 2 - Copy all the jars in the birt-runtime-2_1_0/ReportEngine/lib
> directory from the Report Engine download into your WEB-INF/lib
> 3 - Copy itext jar to the platform/plugins folder under the lowagie plugin
> 4 - Copy the JDBC driver to the JDBC plugin under platform/plugins
>
> So basically you copy the pertinent parts of the BIRT example web app
> into your own project keeping the deployment structure the same. I also
> found that it was helpful to add some of the context-param entries found
> in the example web.xml file to my own web.xml file. What jason provided
> me with should get you started in the right direction.
>
> Good Luck,
> Zeb.
>
>
> Scott Merrick wrote:
>> Hello,
>>
>> OK I have successfully gotten my web application to use the BIRT Report
>> Engine to create reports using the Report Engine copied ('installed') to
>> a folder on my system.
>>
>> I would prefer to have it as part of the web application. But I am
>> having trouble finding examples to see how this is done
>>
>> The BIRT Viewer web application (Birt.war contained in the
>> birt-runtime-2_1_0) is exactly what I want to do, bundle the Reporting
>> Engine in the web application preventing the need to 'install' the
>> Report Engine to the local file system
>> However have tried to find the code for the WebViewerExample and I don't
>> know where to look.
>>
>> I see that the required libs and the 'platform' (contains the eclipse
>> plugins etc...) are placed in the WEB-INF dir but what do I use for the
>> config.setEngineHome?
>>
>> With the Report Engine 'installed' in a folder on my system I use the
>> following code to init the report system
>> ...
>> if( rptEngine == null ){
>> EngineConfig config = new EngineConfig();
>> config.setEngineHome("C:/Development/BIRTStuff/birt-runtime-2_1_0/ReportEngine ");
>> rptEngine = new ReportEngine( config );
>> }
>> ...
>> With the Engine bundled in my application war what do I use?
>>
>> What else do I need to do to get this to work??
>>
>> Thanks for your time.
>>
>> Scott Merrick
>
>
Previous Topic:Merge two rows into one?
Next Topic:DB2 Driver connection issues
Goto Forum:
  


Current Time: Sun Jun 08 09:21:51 EDT 2025

Powered by FUDForum. Page generated in 0.11183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top