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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
i'm not sure, but:
"ClassNotFoundException"
means cant find a Class; maybe you dont have it (driver, i guess) in the classpath
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
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?