- This topic has 10 replies, 2 voices, and was last updated 20 years, 8 months ago by
v2kea204.
-
AuthorPosts
-
v2kea204MemberHello 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
Riyad KallaMemberRajeev,
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.
v2kea204MemberRiyad,
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
Riyad KallaMemberRajeev,
After you hit List Driver, and then expand the dropdown at the bottom of that panel, is the driver listed there?
v2kea204MemberNo Riyad – The drop down for Driver Class Name is empty before as well as after I hit the List Drivers button.
Rajeev
Riyad KallaMemberVery 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.
Riyad KallaMemberRajeev,
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.
v2kea204MemberThanks Riyad I will try that.
v2kea204MemberWhere is this log file maintained, I mean under which directory do I have to look for it.
Regards
Rajeev
Riyad KallaMemberIts under your workspace directory under the .metadata subdirectory and its named “.log”
v2kea204MemberThanks Riyad
-
AuthorPosts