Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT 3.7 Integration-Cannot find the ODA dataSource extension :org.eclipse.birt.report.data.oda.jdbc
BIRT 3.7 Integration-Cannot find the ODA dataSource extension :org.eclipse.birt.report.data.oda.jdbc [message #731851] Mon, 03 October 2011 10:15 Go to next message
Said Taaouati is currently offline Said TaaouatiFriend
Messages: 55
Registered: July 2009
Member
Hello,

The following code does not work any more in BIRT 3.7:

ElementFactory elementFactory = design.getElementFactory();

OdaDataSourceHandle dsrc = elementFactory.newOdaDataSource("DataSource","org.eclipse.birt.report.data.oda.jdbc")

dsrc.setProperty("odaDriverClass", "com.ibm.as400.access.AS400JDBCDriver");



Any idea what is changed in this version?


Thanks,
Re: BIRT 3.7 Integration-Cannot find the ODA dataSource extension :org.eclipse.birt.report.data.oda. [message #731969 is a reply to message #731851] Mon, 03 October 2011 14:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

That should still work. What error are you getting? Verify that you
are not setting config.setBIRTHome(..);

Jason

On 10/3/2011 6:15 AM, Said Taaouati wrote:
> Hello,
>
> The following code does not work any more in BIRT 3.7:
>
> ElementFactory elementFactory = design.getElementFactory();
>
> OdaDataSourceHandle dsrc =
> elementFactory.newOdaDataSource("DataSource","org.eclipse.birt.report.data.oda.jdbc")
>
>
> dsrc.setProperty("odaDriverClass", "com.ibm.as400.access.AS400JDBCDriver");
>
>
> Any idea what is changed in this version?
>
>
> Thanks,
Re: BIRT 3.7 Integration-Cannot find the ODA dataSource extension :org.eclipse.birt.report.data.oda. [message #732183 is a reply to message #731969] Tue, 04 October 2011 07:31 Go to previous messageGo to next message
Said Taaouati is currently offline Said TaaouatiFriend
Messages: 55
Registered: July 2009
Member
Hi Jason,


This code works fine in the earlier versions.

DesignConfig config = new DesignConfig();
DesignEngine engine = new DesignEngine(config);
SessionHandle session = engine.newSessionHandle(null);
ReportDesignHandle design = session.createDesign();
ElementFactory elementFactory = design.getElementFactory();
OdaDataSourceHandle dsrc = elementFactory.newOdaDataSource("DataSource","org.eclipse.birt.report.data.oda.jdbc");


The problem is that line elementFactory.newOdaDataSource("DataSource","org.eclipse.birt.report.data.oda.jdbc");
returns null because the extentionID is not found.

Setting the birt home does not solve the problem.

Thanks,
Re: BIRT 3.7 Integration-Cannot find the ODA dataSource extension :org.eclipse.birt.report.data.oda. [message #732300 is a reply to message #731969] Tue, 04 October 2011 13:13 Go to previous message
Said Taaouati is currently offline Said TaaouatiFriend
Messages: 55
Registered: July 2009
Member
Thanks, the problem is solved.

The problem was: some BIRT plugins are not added the run configurations.
Previous Topic:Location of fontsConfig.xml for BIRT 3.7 runtime installation
Next Topic:export to pdf in IE error
Goto Forum:
  


Current Time: Thu Sep 26 01:50:32 GMT 2024

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

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

Back to the top