Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-dev] jdbc driver packaged as plugin


I'm guessing that the connectivity layer works similar to WTP and basically assumes that the jars are always external to Eclipse and explicitly loads them into a classloader.   In this case, since the jar list is empty, the classloader never loads the jars.  The solution is to not export the driver packages and to create a custom connection UI that populates the jar list by locating the jars in the plug-in and providing the absolute path in the jar list.

Larry Dunnell
RAD Data Tools, DB2 Tooling,  Eclipse WTP Project and Eclipse DTP Project
IBM DB2 Information Management Software




Anil T Samuel <ANIL.SAMUEL@xxxxxxxxxx>
Sent by: dtp-dev-bounces@xxxxxxxxxxx

02/11/2007 09:43 PM

Please respond to
DTP development mailing list <dtp-dev@xxxxxxxxxxx>

To
DTP development mailing list <dtp-dev@xxxxxxxxxxx>
cc
Subject
[dtp-dev] jdbc driver packaged as plugin





Hi

I am trying to package JDBC driver as a separate plugin. The JDBC lib  
jar file is packaged in this plugin and the plugin.xml exports the  
packages as

Export-Package: oracle.jdbc,
oracle.jdbc.driver

and this plugin is consumed by other plugin as

Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
oracle.dbtools.dtp.jdbc.driver

also have the following in plugin.xml

      <driverTemplate
            createDefault="true"
            emptyJarListIsOK="true"
-
-
/>

but when I try ping the db connection () it is resulting

java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

Any thoughts ?

Anthos
_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev


Back to the top