It's all about the answers!

Ask a question

BIRT report with Microsft SQL JDBC Driver stopped working in RTC after upgrade of Websphere to version 9

Ahmed Omair (4928) | asked Oct 30 '18, 2:53 a.m.
edited Oct 30 '18, 3:00 a.m.


We have CLM 6.0.5 installed in Websphere Application Server To upgrade CLM to version 6.0.6 we installed Websphere Application Server with Java and migrated the profiles.
We are also using BIRT for reporting purpose and BIRT is using Microsft SQL JDBC Driver to access a Database directly. These BIRT reports were working absolutely fine before migration to WAS We had added the Microsoft SQL Server JDBC driver "sqljdbc4.jar" in*.jar in update-sites/plugins folder as mentioned in IBM technote.

After upgraded and migrating profiles to WAS our birt reports stopped working and we started getting following error.

An exception occurred during processing. Please see the following message for details: 
Cannot open the connection for the driver: Cannot load JDBC Driver class:

Quick help will be very valuable.

Accepted answer

permanent link
Rafik Jaouani (5.0k16) | answered Oct 30 '18, 9:26 a.m.

Hi Ahmed,

A better more robust way to specify the location of the JDBC Driver that would not require any patching of any jars is to add the following to the report initialize method:
reportContext.getAppContext().put("OdaJDBCDriverClassPath", "C:/IBM/JDBC_DatabaseDrivers/DB2");

Use the path where you had placed the JDBC Driver instead of "C:/IBM/JDBC_DatabaseDrivers/DB2".

Ahmed Omair selected this answer as the correct answer

Ahmed Omair commented Nov 05 '18, 3:00 a.m.

Thanks. This worked :) 

Your answer

Register or to post your answer.