hibernator-0.9.6 doesn't seem to be able to find my driver class, giving exception on trying to establish connection:
---------------------------------
Ignoring resources in Project output: /H2H Gateway/build/classes
Adding Project Depedents C:/workbox/H2HGateway/lib/JSQLConnect.jar
Adding Project Classpath file:/C:/workbox/H2HGateway/build/classes/
java.lang.ClassNotFoundException: com.jnetdirect.jsql.JSQLDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:152)
at net.sf.hibernator.views.ConnectionView$8.run(ConnectionView.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
--------------------------------------
using JSQLConnect.jar driver on my eclipse project work just fine. I also tried to put the driver jar into hibernator's plugin lib dir. No luck.
Wondering what may be wrong here?
thanks,
/bernard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No I did not. Attaching the driver jar using the browse button seem to get the connection going.
mmmm...... this info probably good to put into README file.
However Query View is locked. Cannot type anything on it.
From the README file:
-------------------------------------------------
* Running a query
- Make sure you have created and connected to a database as above
- Type your query into the "Query View" and hit "Execute"
- Not the table of results in the "Results View" or any errors in the "Log View"
-------------------------------------------------
Also is there a way to explicitly disconnect once connected? something like disconnect cmd? Once Hibernator is connected, how to terminate the connection?
I use eclipse 2.1.1
Thanks,
/bernard
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
hibernator-0.9.6 doesn't seem to be able to find my driver class, giving exception on trying to establish connection:
---------------------------------
Ignoring resources in Project output: /H2H Gateway/build/classes
Adding Project Depedents C:/workbox/H2HGateway/lib/JSQLConnect.jar
Adding Project Classpath file:/C:/workbox/H2HGateway/build/classes/
java.lang.ClassNotFoundException: com.jnetdirect.jsql.JSQLDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:152)
at net.sf.hibernator.views.ConnectionView$8.run(ConnectionView.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
--------------------------------------
using JSQLConnect.jar driver on my eclipse project work just fine. I also tried to put the driver jar into hibernator's plugin lib dir. No luck.
Wondering what may be wrong here?
thanks,
/bernard
I know it lists it as being on the project classpath, but this gets added seperately from the wizard page.
In the connection proprties wizard are you browsing and selecting the DB Driver jar file?
No I did not. Attaching the driver jar using the browse button seem to get the connection going.
mmmm...... this info probably good to put into README file.
However Query View is locked. Cannot type anything on it.
From the README file:
-------------------------------------------------
* Running a query
- Make sure you have created and connected to a database as above
- Type your query into the "Query View" and hit "Execute"
- Not the table of results in the "Results View" or any errors in the "Log View"
-------------------------------------------------
Also is there a way to explicitly disconnect once connected? something like disconnect cmd? Once Hibernator is connected, how to terminate the connection?
I use eclipse 2.1.1
Thanks,
/bernard