Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Error with standalone app and ODA driver
Error with standalone app and ODA driver [message #511055] Fri, 29 January 2010 16:25 Go to next message
Chris  is currently offline Chris Friend
Messages: 19
Registered: December 2009
Junior Member
I have written and tested the ODA designer and driver plugins for eclipse and now want to write a standalone application that will use the driver. I have a sample application that works fine when the database driver is the MySQL driver. I thought that all I should have to do is include the ODA driver jar in my classpath instead of the MySQL jdbc jar and that would work, but it didn't. I also tried adding this jar to the report engine plugins folder, but that didn't work either. So, what exactly is the procedure to get this working?

Thanks,
Chris
Re: Error with standalone app and ODA driver [message #511523 is a reply to message #511055] Mon, 01 February 2010 21:26 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Chris,

If the jar is a plugin put it in the plugins directory. In the runtime
you only need the runtime plugin. In the designer you need both runtime
and design time oda plugins.

Jason

Chris wrote:
> I have written and tested the ODA designer and driver plugins for
> eclipse and now want to write a standalone application that will use the
> driver. I have a sample application that works fine when the database
> driver is the MySQL driver. I thought that all I should have to do is
> include the ODA driver jar in my classpath instead of the MySQL jdbc jar
> and that would work, but it didn't. I also tried adding this jar to the
> report engine plugins folder, but that didn't work either. So, what
> exactly is the procedure to get this working?
>
> Thanks,
> Chris
Re: Error with standalone app and ODA driver [message #511694 is a reply to message #511523] Tue, 02 February 2010 14:56 Go to previous messageGo to next message
Chris  is currently offline Chris Friend
Messages: 19
Registered: December 2009
Junior Member
Jason,

I did include the jar in the plugin folder. However, I found my problem and I think it's another problem with the ODA driver tutorial. There is a checkbox in the plugin wizard that asks if the driver is going to participate in the UI. If that is checked, then the Activator extends UIPlugin and has a dependency on the Eclipse UI jars. This should not be checked for the runtime plugin. It appears that when the plugins are searched at startup, the manifest files are read and if there are any unsatisfied dependencies, the search continues on and ignores the plugin with the unresolved dependency. This results in the error that the ODA driver cannot be found.

There really needs to be some type of message that comes out when there are unsatified dependencies in a manifest file. I spent over a week tracking this one down when a message would have made it obvious. I'm not sure who to annoy with this.

Chris
Re: Error with standalone app and ODA driver [message #511758 is a reply to message #511694] Tue, 02 February 2010 18:20 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Chris,

I have seen this before. Can you add a comment to the dev share item?

Jason

Chris wrote:
> Jason,
>
> I did include the jar in the plugin folder. However, I found my problem
> and I think it's another problem with the ODA driver tutorial. There is
> a checkbox in the plugin wizard that asks if the driver is going to
> participate in the UI. If that is checked, then the Activator extends
> UIPlugin and has a dependency on the Eclipse UI jars. This should not
> be checked for the runtime plugin. It appears that when the plugins are
> searched at startup, the manifest files are read and if there are any
> unsatisfied dependencies, the search continues on and ignores the plugin
> with the unresolved dependency. This results in the error that the ODA
> driver cannot be found.
> There really needs to be some type of message that comes out when there
> are unsatified dependencies in a manifest file. I spent over a week
> tracking this one down when a message would have made it obvious. I'm
> not sure who to annoy with this.
>
> Chris
Previous Topic:webviewer in iphone
Next Topic:count group items
Goto Forum:
  


Current Time: Thu Sep 26 11:20:38 GMT 2024

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

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

Back to the top