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.  [ 1 post ] 
Author Message
 Post subject: Hibernate Beginner - Tutorial Help
PostPosted: Wed Dec 21, 2011 10:30 pm 
Newbie

Joined: Wed Dec 21, 2011 10:23 pm
Posts: 1
I'm new to Hibernate and I've been following the tutorial. I at http://docs.jboss.org/hibernate/core/3.5/reference/en-US/html_single/#tutorial-firstapp-workingpersistence and I keep getting an error when trying to run the command in that segment.
here is the line that I am executing:
Code:
mvn exec:java -Dexec.mainClass="org.hibernate.tutorial.EventManager" -Dexec.args="store"

And here is the error:
Image

I've narrowed it down to the line of code in the EventManager.java in the createAndStoreEvent() method. after the session object is created
Code:
Session session = HibernateUtil.getSessionFactory().getCurrentSession();

the next line
Code:
session.beginTransaction

returns the following error:
Code:
Cannot open connection: No suitable driver found for jdbc:hsqldb:mem:testdb


I have followed the tutorial 100% except for when creating the
Code:
pom.xml
the tutorial left out the versions for the dependencies and I cannot figure out where I am messing up. I have tried several versions of Maven to make sure that wasnt the problem and have looked for different settings for Hibernate to see if that is the problem and I consistently get that error.


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

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.