Quote:
net.sf.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
at net.sf.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:63)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
at CDTest.<init>(CDTest.java:29)
at CDTest.main(CDTest.java:201)
The jar containing the MySQL driver is not present in the classpath. Place that jar file in your classpath.
Quote:
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
The log4j.xml or log4j.properties is not present in the classpath. Place either of them in the classpath.