-->
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.  [ 4 posts ] 
Author Message
 Post subject: newcomer need help with 'eg' example
PostPosted: Sat Mar 19, 2005 7:56 pm 
Newbie

Joined: Sat Mar 19, 2005 7:45 pm
Posts: 3
Hello,
I'm new to the hibernate scene and want to get my feet wet, however i have come across some hiccups. i'm running java 1.5 mysql 4.1.

I extract the archive, add my jdbc.jar to the lib directory and when i attempt build eg, i get the following trace:

JDBC Driver
class not found: org.hsqldb.jdbcDriver
[java] at org.hibernate.auction.Main.main(Main.java:363)

BUILD FAILED
file:C:/Documents%20and%20Settings/Chris/Desktop/hibernate/build.xml:509: Java r
eturned: 1


so i noticed that the block of connection code for hsql was active, and mysql was commented out, so i changed those, and i get this trace:

JDBC Driver
class not found: com.mysql.jdbc.Driver
[java] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Config
uration.java:803)
[java] at org.hibernate.auction.Main.main(Main.java:363)

BUILD FAILED
file:C:/Documents%20and%20Settings/Chris/Desktop/hibernate/hibernate/build.xml:5
09: Java returned: 1


does anyone have any suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 8:00 pm 
Newbie

Joined: Sat Mar 19, 2005 7:45 pm
Posts: 3
it would seem i need to modify some values for the jdbc connection, although im a bit unfamiliar with what needs changed, could someone walk me through this?

## MySQL
hibernate.dialect net.sf.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class org.gjt.mm.mysql.Driver
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql:///test
hibernate.connection.username root
hibernate.connection.password


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2005 4:47 pm 
Newbie

Joined: Sun Mar 20, 2005 4:45 pm
Posts: 1
I would go and double check for certain that you have the file.

mysql-connector-java-3.1.7-bin.jar in your lib directory.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 4:38 am 
Newbie

Joined: Sat Mar 19, 2005 7:45 pm
Posts: 3
i do not have mysql-connector-java-3.1.7-bin.jar in my lib directory, nor do i see it when i search my files for it, where do i find this file?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.