facebook

Adding new JDBC Driver to Eclipse

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #212119 Reply

    v2kea204
    Member

    Hello all:
    I want to use BEA Weblogic’s JDBC driver with Hibernate, I am trying to add the JDBC Driver using the Preferences -> Database Explorer –> Driver’s Wizard. I am filling in Name and ExampleURL and Driver Class Name, where Driver class name is weblogic.jdbc.sqlserver.SQLServerDriver and if I use teh Extra Classpath tab and point to the wlsqlserver.jar file and click OK, nothing happens I don’t get any response. If I don’t provide this jar in the extra class path I get an error dialog box saying Error Adding Driver weblogic.jdbc.sqlserver.SQLServerDriver.

    Can some one help

    Rajeev

    #212120 Reply

    Riyad Kalla
    Member

    Rajeev,
    If you open up the driver JAR with Winzip or other zip program, what is the path (inside of the zip) where the JDBC driver class is located?

    Usually you can use the “Add” button on the “Extra Class Path” tab and select the jar, then click “List drivers” to try and have the wizard read out the driver information from the JAR files, so you don’t have to enter it manually.

    #212128 Reply

    v2kea204
    Member

    Riyad,
    The path inside the winzip is weblogic\jdbc\sqlserver\SQLServerDriver.class, I tried the List Driver option after adding the Jar to Extra Class Path, it did not list anything, nothing happened.

    It is a 81KB file, if you want I can send it to you by email and you can try for yourself, or you can find it in your Weblogic server’s lib directory if you have Weblogic installed at one of your systems.

    Thanks

    Rajeev

    #212132 Reply

    Riyad Kalla
    Member

    Rajeev,
    After you hit List Driver, and then expand the dropdown at the bottom of that panel, is the driver listed there?

    #212136 Reply

    v2kea204
    Member

    No Riyad – The drop down for Driver Class Name is empty before as well as after I hit the List Drivers button.

    Rajeev

    #212137 Reply

    Riyad Kalla
    Member

    Very strange… yes please attach the driver to an email and send it to support@genuitec.com with a description of the problem and a link to this thread.

    #212242 Reply

    Riyad Kalla
    Member

    Rajeev,
    I got your email and tried it locally. Turns out the following exception is occuring:

    !ENTRY org.eclipse.ui 4 0 Aug 17, 2004 07:43:45.766
    !MESSAGE weblogic/jdbc/base/BaseDriver
    !STACK 0
    java.lang.NoClassDefFoundError: weblogic/jdbc/base/BaseDriver
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)

    And I decompiled the SQLServerDriver class and it extends the “BaseDriver” class which you are missing. There must have been more JARs included with this driver and you just need ot make sure to add them all to your classpath.

    #212379 Reply

    v2kea204
    Member

    Thanks Riyad I will try that.

    #212381 Reply

    v2kea204
    Member

    Where is this log file maintained, I mean under which directory do I have to look for it.

    Regards

    Rajeev

    #212392 Reply

    Riyad Kalla
    Member

    Its under your workspace directory under the .metadata subdirectory and its named “.log”

    #212425 Reply

    v2kea204
    Member

    Thanks Riyad

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Adding new JDBC Driver to Eclipse

You must be logged in to post in the forum log in