Home
Analytics
Add new version of Mongo DB driver in BIRT runtime
sanisaif
<p>I am using BIRT Runtime in my custom web application. The data source of my report is MongoDB. SInce BIRT 4.5+ refers to an old version of MongoDB jdbc driver, I replaced the Mongo DB driver in BIRT report designer using the steps specified in the following post</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/topic/36488-mongodb-connection-issue-over-ssl/#entry135673'>http://developer.actuate.com/community/forum/index.php?/topic/36488-mongodb-connection-issue-over-ssl/#entry135673</a></p>
;
<p>Everything works fine in BIRT report designer.</p>
<p> </p>
<p>But how do I add this new version of Mongo DB driver in BIRT runtime. I am adding BIRT runtime library to my project. How do I unpack and repack the BIRT runtime jar after adding Mongo DB driver?</p>
Find more posts tagged with
Comments
Clement Wong
<p>You can use 7zip (get it @ <a data-ipb='nomediaparse' href=''>
http://www.7-zip.org),</a>or
WinZip, for example to open the runtime ZIP (e.g. birt-runtime-4.6.0-20160607.zip) and replace the files in birt.war's WEB-INF\lib\, or in the WebViewerExample\WEB-INF\lib\ directly. </p>
<p> </p>
<p>Open it up and navigate to the specific directory, delete the "org.eclipse.orbit.mongodb_2.10.1.v20130422-1135.jar" file, and add the "mongo-java-driver-2.14.3.jar" there.</p>
sanisaif
<blockquote class="ipsBlockquote" data-author="Clement Wong" data-cid="145130" data-time="1472508629">
<div>
<p>You can use 7zip (get it @ <a data-ipb='nomediaparse' href=''>
http://www.7-zip.org),</a>or
WinZip, for example to open the runtime ZIP (e.g. birt-runtime-4.6.0-20160607.zip) and replace the files in birt.war's WEB-INF\lib\, or in the WebViewerExample\WEB-INF\lib\ directly.</p>
<p> </p>
<p>Open it up and navigate to the specific directory, delete the "org.eclipse.orbit.mongodb_2.10.1.v20130422-1135.jar" file, and add the "mongo-java-driver-2.14.3.jar" there.</p>
</div>
</blockquote>
<p>Thanks, Clement! But I am not using BIRT viewer to display my reports. Instead I am writing my own custom web report viewer application and using Maven to include BIRT runtime dependencies. How will I replace MongoDB driver in this case.</p>