MySQL Forums
Forum List  »  PHP

ODA Datasource?
Posted by: Mylsamy Shanmugam
Date: April 13, 2010 12:17AM

Hi all,

I am using birt report with glassfish server,

I am trying to integrate the report design file with servlet code and deploy it and run the code means it shows an error : Cannot load JDBC Driver class: com.mysql.jdbc.Driver. I added all jar files for jdbc but still i struck with this error.

And my MySql code in servlet is

OdaDataSourceHandle dsHandle = designFactory.newOdaDataSource(
"dbcrs", "org.eclipse.birt.report.data.oda.jdbc" );

dsHandle.setProperty( "odaDriverClass","com.mysql.jdbc.Driver" );
dsHandle.setProperty( "odaURL", "jdbc:mysql://localhost:3306/dbcrs02" );
dsHandle.setProperty( "odaUser", "root" );
report.getDataSources().add(dsHandle);


Can anyone help this?

Thanks in Advance ,

Myl

Thanx in Advance

Myl

Options: ReplyQuote


Subject
Written By
Posted
ODA Datasource?
April 13, 2010 12:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.