I have a problem with configuration of hibernate when i run the class test
May 10, 2012 5:14:49 PM net.sf.hibernate.dialect.Dialect <init> INFO: Using dialect: net.sf.hibernate.dialect.MySQLDialect May 10, 2012 5:14:49 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 20 May 10, 2012 5:14:49 PM net.sf.hibernate.connection.DriverManagerConnectionProvider configure SEVERE: JDBC Driver class not found: com.mysql.jdbc.Driver Exception in thread "main" net.sf.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:57) at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:76) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:161) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:613) at hh.CreateTest.main(CreateTest.java:14)
I have "mysql-connector-java-5.1.13-bin.jar" and hibernate.properties is:
hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect hibernate.connection.driver_class=com.mysql.jdbc.Driver hibernate.connection.url=jdbc:mysql://localhost/test hibernate.connection.username=test hibernate.connection.password=test
Please Help.
|