Home
Analytics
Integrating BIRT, OSGI and maven
ashadale
<p>Hi</p>
<p> </p>
<p>I wrote a OSGI plugin project which generates a BIRT report .I added following dependency in my pom.</p>
<p> <dependency><br>
<groupId>org.eclipse.birt.runtime</groupId><br>
<artifactId>org.eclipse.birt.runtime</artifactId><br>
<version>4.2.0</version> (alsoe tried 4.4.2)<br>
</dependency></p>
<p>I wrote a test application and was sucessfully able to generate a report.</p>
<p> </p>
<p>But when I try pulling this bundle in my eclipse tycho features (which reads all bundle manifest and loads the bundles) ,it complains of missing dependencies org.eclipse.birt.report.engine , org.eclipse.birt.core.</p>
<p>I tried adding them to my features and it starts complaining of other dependencies in the report.engine and core.</p>
<p> </p>
<p>I checked the birt-runtime Manifest it doesnt look right , it does not have import or export package entries</p>
<p> </p>
<p>I also tried removing runtime dependency and added only which I need and I see the Manifest on these projects have export, import entries but no versions.But this did not fix my issue.</p>
<p> </p>
<p><dependency><br>
<groupId>org.w3c</groupId><br>
<artifactId>tidy</artifactId><br>
<version>1.0</version><br>
</dependency><br>
<dependency><br>
<groupId>org.eclipse.birt</groupId><br>
<artifactId>org.eclipse.birt.report.engine.emitter.pdf</artifactId><br>
<version>4.4.2-SDK-4.4.2</version><br>
</dependency><br>
<dependency><br>
<groupId>org.eclipse.birt</groupId><br>
<artifactId>org.eclipse.birt.core</artifactId><br>
<version>4.4.2-SDK-4.4.2</version><br>
</dependency><br>
<dependency><br>
<groupId>org.eclipse.birt</groupId><br>
<artifactId>org.eclipse.birt.report.engine</artifactId><br>
<version>4.4.2-SDK-4.4.2</version><br>
</dependency><br>
<dependency><br>
<groupId>org.eclipse.birt</groupId><br>
<artifactId>org.eclipse.birt.report.engine.script.javascript</artifactId><br>
<version>4.4.2-SDK-4.4.2</version><br>
</dependency></p>
<p> </p>
<p>Any help on how to make BIRT work on OSGI runtime will be appreciated.</p>
<p> </p>
<p>Thank you</p>
<p>Asha</p>
Find more posts tagged with
Comments
ashadale
<p>any update..? has no one faced this issue before or is my question confusing?</p>
JFreeman
<p>Are you still needing assistance with this one?</p>
ashadale
<p>Yes... I am still having trouble using BIRT in my p2 assembly as OSGI bundle.</p>
cmalnoe
<p>What is your error, ClassNotFoundException? This error is at runtime level? building is OK?</p>
<p>I think i have similar issue. I got an ClassNotFoundException while running birt under glassfish 3.1.2.2, and the class is contained in the org.eclipse.birt.runtime jar.. don't know how to fix it.</p>
<p> </p>
<p> </p>
<p>How birt-runtime Manifest should looks like?</p>
<p> </p>
<p>Thanks</p>
<p> </p>
<p> </p>
<p>Caroline</p>