Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » relative location of driver JAR file
relative location of driver JAR file [message #20311] Tue, 01 August 2006 09:31 Go to next message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

Is there a way of referencing a jar file in the JAR list of a driver
(jarList property) using a relative path of the plugin? I would like to
define a driver plugin, which would include the JAR files in the plugin.

I saw bug 140816 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140816)
that mentions using of the syntax like [plugin-id]/path, but that is not
working for me. Is there anything I might have done incorrectly?

Thanks,
Radim
Re: relative location of driver JAR file [message #20329 is a reply to message #20311] Thu, 03 August 2006 20:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Hi Radim...

You should be able to use the [plugin-id]/path method to use the relative
path. You might check a couple of things...

1) Is the plug-in you're referencing accessible from the plug-in with the
referenced path? (Maybe the file is exposed in a separate plug-in?)

2) What does your actual extension point look like? I may be able to see
something in the actual text that could help. (Hard to debug sight unseen.)

Thanks!
--Brian Fitzpatrick
Sybase, Inc.
Senior Software Engineer/DTP Connectivity Committer

"Radim" <radim@kolarikovi.net> wrote in message
news:92b8cfde2e13f012a9a252521b5fb123$1@www.eclipse.org...
> Hi,
>
> Is there a way of referencing a jar file in the JAR list of a driver
> (jarList property) using a relative path of the plugin? I would like to
> define a driver plugin, which would include the JAR files in the plugin.
>
> I saw bug 140816 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140816)
> that mentions using of the syntax like [plugin-id]/path, but that is not
> working for me. Is there anything I might have done incorrectly?
>
> Thanks,
> Radim
>
Re: relative location of driver JAR file [message #20339 is a reply to message #20329] Fri, 04 August 2006 12:52 Go to previous messageGo to next message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Brian,

my extension definition looks like this:

<plugin>
<extension
point="org.eclipse.datatools.connectivity.driverExtension">
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp "
name="Testapp"/>
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp5 "
name="Testapp 5 Database"

parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp "/>
<driverTemplate
createDefault="false"
emptyJarListIsOK="false"

id=" com.testapp.ide.db.connectivity.profile.drivertemplate.testa pp5 "

jarList=" [com.testapp.ide.db.connectivity.profile]/thirdparty/ojdbc14 .jar "
name="Oracle for Testapp 5"

parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp5 ">
<properties>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.driverClass"
name="Driver Class"
value="oracle.jdbc.OracleDriver"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.vendor"
name="Driver Vendor"
value="Oracle"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.version"
name="Driver Version"
value="9"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.databaseName"
name="Oracle Service Name"
value="db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.URL"
name="JDBC URL"
value="jdbc:oracle:thin:@server:1521:db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.username"
name="User"
value="testapp"
required="false"
visible="true"/>
<property

customPropertyDescriptor=" org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDe scriptor "
generated="false"
id="org.eclipse.datatools.connectivity.db.password"
name="Password"
required="false"
visible="true"/>
</properties>
</driverTemplate>
</extension>


Can you see if there is anything that I am doing wrong? I believe the JAR
file is accessible, it is part of the plugin.

Thanks for your help,
Radim
Re: relative location of driver JAR file [message #20349 is a reply to message #20339] Fri, 04 August 2006 15:13 Go to previous messageGo to next message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
I think I have identified the problem. It appears to be working only if
there is createDefault property set to "true". It then creates a default
driver instance successfully.

However, if I try to create the driver instance using menu, the
[plugin.id] string is not converted (looking at the source code, the
updatePluginJarList method of the DriverManager class is not called).

Is it a bug or is it an expected behaviour?

Thanks,
Radim
Re: relative location of driver JAR file [message #20359 is a reply to message #20349] Fri, 04 August 2006 19:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brianf.sybase.com

Sounds like a bug. If you make a Bugzilla entry we'll get it fixed.

Thanks!
--Brian

"Radim" <radim@kolarikovi.net> wrote in message
news:b52536e43ffa9bb4af0776fbdc15325d$1@www.eclipse.org...
> I think I have identified the problem. It appears to be working only if
> there is createDefault property set to "true". It then creates a default
> driver instance successfully.
>
> However, if I try to create the driver instance using menu, the
> [plugin.id] string is not converted (looking at the source code, the
> updatePluginJarList method of the DriverManager class is not called).
>
> Is it a bug or is it an expected behaviour?
>
> Thanks,
> Radim
>
Re: relative location of driver JAR file [message #20379 is a reply to message #20359] Tue, 08 August 2006 13:17 Go to previous messageGo to next message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

Thanks for your help.

I have created the bugzilla entry -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153080

Regards,
Radim
Re: relative location of driver JAR file [message #29390 is a reply to message #20379] Fri, 13 April 2007 05:02 Go to previous message
Sabeesh C.S. is currently offline Sabeesh C.S.Friend
Messages: 21
Registered: July 2009
Junior Member
Hi,
I think, your problum is that, you create a plugin, which one
cammunicating with the database with the help of a data base driver. If
the driver is a jar file, then extract that jar file in the project
directory. in my case, if the programe name is org.test.hello then it is
D:\WorkSpace\org.test.hello\src\ and D:\WorkSpace\org.test.hello\bin\ .
No need any other settings. I am sure it is working.

Sabeesh .C.S
Re: relative location of driver JAR file [message #581470 is a reply to message #20311] Thu, 03 August 2006 20:35 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Hi Radim...

You should be able to use the [plugin-id]/path method to use the relative
path. You might check a couple of things...

1) Is the plug-in you're referencing accessible from the plug-in with the
referenced path? (Maybe the file is exposed in a separate plug-in?)

2) What does your actual extension point look like? I may be able to see
something in the actual text that could help. (Hard to debug sight unseen.)

Thanks!
--Brian Fitzpatrick
Sybase, Inc.
Senior Software Engineer/DTP Connectivity Committer

"Radim" <radim@kolarikovi.net> wrote in message
news:92b8cfde2e13f012a9a252521b5fb123$1@www.eclipse.org...
> Hi,
>
> Is there a way of referencing a jar file in the JAR list of a driver
> (jarList property) using a relative path of the plugin? I would like to
> define a driver plugin, which would include the JAR files in the plugin.
>
> I saw bug 140816 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140816)
> that mentions using of the syntax like [plugin-id]/path, but that is not
> working for me. Is there anything I might have done incorrectly?
>
> Thanks,
> Radim
>
Re: relative location of driver JAR file [message #581483 is a reply to message #20329] Fri, 04 August 2006 12:52 Go to previous message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Brian,

my extension definition looks like this:

<plugin>
<extension
point="org.eclipse.datatools.connectivity.driverExtension">
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp "
name="Testapp"/>
<category
id="com.testapp.ide.db.connectivity.profile.category.testapp5 "
name="Testapp 5 Database"

parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp "/>
<driverTemplate
createDefault="false"
emptyJarListIsOK="false"

id=" com.testapp.ide.db.connectivity.profile.drivertemplate.testa pp5 "

jarList=" [com.testapp.ide.db.connectivity.profile]/thirdparty/ojdbc14 .jar "
name="Oracle for Testapp 5"

parentCategory="com.testapp.ide.db.connectivity.profile.category.testapp5 ">
<properties>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.driverClass"
name="Driver Class"
value="oracle.jdbc.OracleDriver"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.vendor"
name="Driver Vendor"
value="Oracle"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.version"
name="Driver Version"
value="9"
required="true"
visible="false"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.databaseName"
name="Oracle Service Name"
value="db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.URL"
name="JDBC URL"
value="jdbc:oracle:thin:@server:1521:db"
required="true"
visible="true"/>
<property
generated="false"
id="org.eclipse.datatools.connectivity.db.username"
name="User"
value="testapp"
required="false"
visible="true"/>
<property

customPropertyDescriptor=" org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDe scriptor "
generated="false"
id="org.eclipse.datatools.connectivity.db.password"
name="Password"
required="false"
visible="true"/>
</properties>
</driverTemplate>
</extension>


Can you see if there is anything that I am doing wrong? I believe the JAR
file is accessible, it is part of the plugin.

Thanks for your help,
Radim
Re: relative location of driver JAR file [message #581490 is a reply to message #20339] Fri, 04 August 2006 15:13 Go to previous message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
I think I have identified the problem. It appears to be working only if
there is createDefault property set to "true". It then creates a default
driver instance successfully.

However, if I try to create the driver instance using menu, the
[plugin.id] string is not converted (looking at the source code, the
updatePluginJarList method of the DriverManager class is not called).

Is it a bug or is it an expected behaviour?

Thanks,
Radim
Re: relative location of driver JAR file [message #581536 is a reply to message #20349] Fri, 04 August 2006 19:18 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
Sounds like a bug. If you make a Bugzilla entry we'll get it fixed.

Thanks!
--Brian

"Radim" <radim@kolarikovi.net> wrote in message
news:b52536e43ffa9bb4af0776fbdc15325d$1@www.eclipse.org...
> I think I have identified the problem. It appears to be working only if
> there is createDefault property set to "true". It then creates a default
> driver instance successfully.
>
> However, if I try to create the driver instance using menu, the
> [plugin.id] string is not converted (looking at the source code, the
> updatePluginJarList method of the DriverManager class is not called).
>
> Is it a bug or is it an expected behaviour?
>
> Thanks,
> Radim
>
Re: relative location of driver JAR file [message #581589 is a reply to message #20359] Tue, 08 August 2006 13:17 Go to previous message
Radim is currently offline RadimFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

Thanks for your help.

I have created the bugzilla entry -
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153080

Regards,
Radim
Re: relative location of driver JAR file [message #585231 is a reply to message #20379] Fri, 13 April 2007 05:02 Go to previous message
Sabeesh C.S. is currently offline Sabeesh C.S.Friend
Messages: 21
Registered: July 2009
Junior Member
Hi,
I think, your problum is that, you create a plugin, which one
cammunicating with the database with the help of a data base driver. If
the driver is a jar file, then extract that jar file in the project
directory. in my case, if the programe name is org.test.hello then it is
D:\WorkSpace\org.test.hello\src\ and D:\WorkSpace\org.test.hello\bin\ .
No need any other settings. I am sure it is working.

Sabeesh .C.S
Previous Topic:ODA driver for EJB access
Next Topic:How to add a jdbc driver that uses native code?
Goto Forum:
  


Current Time: Fri Apr 26 10:02:11 GMT 2024

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

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

Back to the top