Menu

Driver class not found

Help
2003-11-04
2003-11-05
  • Bernardinus

    Bernardinus - 2003-11-04

    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

     
    • Daniel Bradby

      Daniel Bradby - 2003-11-05

      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?

       
    • Bernardinus

      Bernardinus - 2003-11-05

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.