-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: artifact generation error using eclipse plugins with mySQL
PostPosted: Mon Aug 15, 2005 4:11 pm 
Newbie

Joined: Mon Aug 15, 2005 3:57 pm
Posts: 13
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0.5
[Name and version of the database you are using:
MySQL 4.1.10a

Hi,

I'm trying to use the eclipse plugins to auto-generate my databases. I keep getting the following error:

org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading database driverclass (com.jdbc.mysql.Driver)

It works fine with Hypersonic SQL. but fails with MySQL.

I have the mysql-connector-java-3.1.10-bin.jar in my project lib, but oddly it doesn't show up in the directory when I try to add the jar from within the console configuration wizard, yet the hsqldb.jar file is visible. When I add mysql-connector-java-3.1.10-bin.jar as an external JAR file that doesn't work either.

Here's my hibernate config file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
<property name="hibernate.connection.driver_class">com.jdbc.mysql.Driver</property>
</session-factory>
</hibernate-configuration>

I'm totally perplexed since it works fine with hypersonic sql yet doesn't with mySQL. Thanks in advance for your help!


Top
 Profile  
 
 Post subject: Solved!
PostPosted: Mon Aug 15, 2005 4:33 pm 
Newbie

Joined: Mon Aug 15, 2005 3:57 pm
Posts: 13
the driver is com.mysql.jdbc.Driver NOT com.jdbc.mysql.Driver.

Sheesh! Time to take a break!

thanks to those of you that were just getting ready to point this out!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.