Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Driver definition could not be found
Driver definition could not be found [message #523987] Tue, 30 March 2010 08:09 Go to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 15
Registered: July 2009
Junior Member
When run the report in Eclipse or with the deployed default war file
it runs without problems.

But when I used the web project generated by birt-wtp-integration-sdk-2_5_2.zip on the same Tomcat6 I get:

java.lang.Exception: Driver definition could not be found.
	at org.eclipse.datatools.connectivity.DriverConnectionBase.getDriverDefinition(DriverConnectionBase.java:139)
	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:70)
	at org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JDBCISeriesConnectionFactory.createConnection(JDBCISeriesConnectionFactory.java:27)
	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
	at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:355)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.initializeJDBCConnection(ConnectionInfoImpl.java:659)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionInfoImpl.<init>(ConnectionInfoImpl.java:644)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:38)
	at org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFactory.createConnection(SQMConnectionFactory.java:45)
	at org.eclipse.datatools.connectivity.sqm.internal.core.connection.ConnectionFactory.createConnection(ConnectionFactory.java:59)
	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryAdapterProvider.createConnection(ConnectionFactoryAdapterProvider.java:114)
	at org.eclipse.datatools.connectivity.internal.ManagedConnection.createConnection(ManagedConnection.java:163)
	at org.eclipse.datatools.connectivity.internal.CreateConnectionJob.run(CreateConnectionJob.java:56)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
java.lang.Exception: Driver definition could not be found.
	at org.eclipse.datatools.connectivity.DriverConnectionBase.getDriverDefinition(DriverConnectionBase.java:139)
	at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:70)
	at org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JDBCISeriesConnectionFactory.createConnection(JDBCISeriesConnectionFactory.java:27)
	at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
	at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:355)
	at org.eclipse.datatools.connectivity.internal.ManagedConnection.createConnection(ManagedConnection.java:166)
	at org.eclipse.datatools.connectivity.internal.CreateConnectionJob.run(CreateConnectionJob.java:56)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
30.03.2010 09:26:26 org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connection open(Properties)
WARNUNG: Unable to open a connection with the database connection profile.
org.eclipse.datatools.connectivity.oda.OdaException ;
    java.lang.Exception: Driver definition could not be found.
	at org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connection.open(Connection.java:113)
	at org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connection.open(Connection.java:57)
	at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:239)
	at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
	at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:190)
	at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:178)
	at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:208)
(The exception stack goes on for a while)


I call the viewer by the tag-library:
<%@ taglib uri="/birt.tld" prefix="birt" %>
<birt:viewer id="birtViewer"
reportDesign="${param.report}"
isHostPage="true"
format="pdf">
</birt:viewer>

Right before I can connect to the DB. (To check If the user is allowed to generate reports at all.) The exception occurs whether I do this or not.

I have put the driver-jar in
- tomcat's-common-lib,
the projects-WEB-INF/lib,
" \WebContent\WEB-INF\platform\plugins\org.eclipse.birt.report .data.oda.jdbc_2.5.2.v20100205\drivers ". This at the same time or exclusively.

Is there anyone who can help me?
Re: Driver definition could not be found [message #524415 is a reply to message #523987] Wed, 31 March 2010 20:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thomas,

Are you using a connection profile?

Jason

Thomas Hergenröder wrote:
> When run the report in Eclipse or with the deployed default war file
> it runs without problems.
>
> But when I used the web project generated by
> http://www.eclipse.org/downloads/download.php?file=/birt/dow nloads/drops/R-R1-2_5_2-201002221500/birt-wtp-integration-sd k-2_5_2.zip
> on the same Tomcat6 I get:
>
> java.lang.Exception: Driver definition could not be found.
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.getD riverDefinition(DriverConnectionBase.java:139)
>
> at
> org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnecti on.open(JDBCConnection.java:70)
>
> at
> org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JD BCISeriesConnectionFactory.createConnection(JDBCISeriesConne ctionFactory.java:27)
>
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:83 )
>
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:355)
>
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl.initializeJDBCConnection(ConnectionIn foImpl.java:659)
>
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionInfoImpl. <init>(ConnectionInfoImpl.java:644)
>
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:38)
>
> at
> org.eclipse.datatools.connectivity.sqm.core.SQMConnectionFac tory.createConnection(SQMConnectionFactory.java:45)
>
> at
> org.eclipse.datatools.connectivity.sqm.internal.core.connect ion.ConnectionFactory.createConnection(ConnectionFactory.jav a:59)
>
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yAdapterProvider.createConnection(ConnectionFactoryAdapterPr ovider.java:114)
>
> at
> org.eclipse.datatools.connectivity.internal.ManagedConnectio n.createConnection(ManagedConnection.java:163)
>
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:56)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> java.lang.Exception: Driver definition could not be found.
> at
> org.eclipse.datatools.connectivity.DriverConnectionBase.getD riverDefinition(DriverConnectionBase.java:139)
>
> at
> org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnecti on.open(JDBCConnection.java:70)
>
> at
> org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JD BCISeriesConnectionFactory.createConnection(JDBCISeriesConne ctionFactory.java:27)
>
> at
> org.eclipse.datatools.connectivity.internal.ConnectionFactor yProvider.createConnection(ConnectionFactoryProvider.java:83 )
>
> at
> org.eclipse.datatools.connectivity.internal.ConnectionProfil e.createConnection(ConnectionProfile.java:355)
>
> at
> org.eclipse.datatools.connectivity.internal.ManagedConnectio n.createConnection(ManagedConnection.java:166)
>
> at
> org.eclipse.datatools.connectivity.internal.CreateConnection Job.run(CreateConnectionJob.java:56)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> 30.03.2010 09:26:26
> org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connect ion
> open(Properties)
> WARNUNG: Unable to open a connection with the database connection profile.
> org.eclipse.datatools.connectivity.oda.OdaException ;
> java.lang.Exception: Driver definition could not be found.
> at
> org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connect ion.open(Connection.java:113)
>
> at
> org.eclipse.birt.report.data.oda.jdbc.dbprofile.impl.Connect ion.open(Connection.java:57)
>
> at
> org.eclipse.datatools.connectivity.oda.consumer.helper.OdaCo nnection.open(OdaConnection.java:239)
>
> at
> org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.o penConnection(ConnectionManager.java:165)
>
> at
> org.eclipse.birt.data.engine.executor.DataSource.newConnecti on(DataSource.java:190)
>
> at
> org.eclipse.birt.data.engine.executor.DataSource.open(DataSo urce.java:178)
> at
> org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiD ataSource(DataSourceRuntime.java:208)
>
> (The exception stack goes on for a while)
>
> I call the viewer by the tag-library:
> <%@ taglib uri="/birt.tld" prefix="birt" %>
> <birt:viewer id="birtViewer"
> reportDesign="${param.report}"
> isHostPage="true"
> format="pdf">
> </birt:viewer>
>
> Right before I can connect to the DB. (To check If the user is allowed
> to generate reports at all.) The exception occurs whether I do this or not.
>
> I have put the driver-jar in
> - tomcat's-common-lib,
> the projects-WEB-INF/lib,
> " \WebContent\WEB-INF\platform\plugins\org.eclipse.birt.report
> .data.oda.jdbc_2.5.2.v20100205\drivers ". This at the same time or
> exclusively.
>
> Is there anyone who can help me?
Re: Driver definition could not be found [message #525289 is a reply to message #523987] Tue, 06 April 2010 06:38 Go to previous messageGo to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 15
Registered: July 2009
Junior Member
No, I am not useing a connection profile.
Re: Driver definition could not be found [message #525493 is a reply to message #525289] Tue, 06 April 2010 17:10 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you verify that your driver is copied to the jdbc plugin's drivers
directory?

Jason

Thomas Hergenröder wrote:
> No, I am not useing a connection profile.
Re: Driver definition could not be found [message #525592 is a reply to message #523987] Wed, 07 April 2010 05:49 Go to previous messageGo to next message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 15
Registered: July 2009
Junior Member
yes, I did.
Re: Driver definition could not be found [message #525820 is a reply to message #525592] Wed, 07 April 2010 20:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thomas,

I can not reproduce the issue. I just tried this with MySQL and the WTP
integration package and it worked fine. Can you verify that the driver
is not in another location in tomcats classpath? Can you also post the
report?

Thanks

Jason

Thomas Hergenröder wrote:
> yes, I did.
Re: Driver definition could not be found [message #525856 is a reply to message #523987] Thu, 08 April 2010 01:52 Go to previous messageGo to next message
Linda ChanFriend
Messages: 845
Registered: July 2009
Senior Member
From your stack trace, it looks like you are using the "JDBC Database Connection for Query Builder" data source?

The problem is probably because the driver definition referenced by your data source is not defined in the deployment environment. This issue is fixed in DTP 1.8 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=305757).
You can try download the latest 1.8 DTP build, and install the plugins into your deployment environment.

Linda
Re: Driver definition could not be found [message #527226 is a reply to message #523987] Wed, 14 April 2010 14:21 Go to previous message
Thomas Hergenröder is currently offline Thomas HergenröderFriend
Messages: 15
Registered: July 2009
Junior Member
I am no longer using the tag-library.
Now I am passing in the connection:
task.getAppContext().put("OdaJDBCDriverPassInConnection", con);
That works for now.
Thank you for all your help.
Previous Topic:Chart Drill Through
Next Topic:pdf output
Goto Forum:
  


Current Time: Thu Apr 25 14:42:02 GMT 2024

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

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

Back to the top