Menu

Connection Problems after adding connection

Help
tony
2005-03-03
2013-04-09
  • tony

    tony - 2005-03-03

    hi,
    This is my first time using Hibernator and i encountered the following problem:

    Output location is in source location: /Hibernate3
    Adding Project Classpath file:/C:/WORKFOLDER/eclipse/workspace/Hibernae3/
    java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        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)

    Please help.  Thanks.

     
    • run4fun

      run4fun - 2005-03-03

      i'm not sure, but:
      "ClassNotFoundException"
      means cant find a Class; maybe you dont have it (driver, i guess) in the classpath

       
    • tony

      tony - 2005-03-04

      hi,

      I added the driver related directories and the driver issue seem to have gone away.  What is left is the following when i do a connect:

      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)

      What should i be looking out for when it displays such errors ?   (Windows XP platform)

      Thanks

       
    • Daniel Bradby

      Daniel Bradby - 2005-03-04

      It looks like the same problem still. Notice you are failing on the same line HibernateConnection.java:152. This is the line that looks up the JDBC driver class in the classpath. You are still missing the class.

      What do you mean when you say you added the driver related directories?

       

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.