-->
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: Unable to run hibernate tutorial program
PostPosted: Wed Jul 15, 2009 4:54 am 
Newbie

Joined: Wed Jul 15, 2009 4:27 am
Posts: 4
I am learning hibernate by trying tutorial program on hibernate website.
I have reached till hsql start up . I am not able to start hsqldb via command
Code:
mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/tutorial"

I have maven installed and working fine. I have just downloaded a hsqldb and unzipped it under c:\hsqldb, I also modified CLASSPATH Environment variable to it is as follows
.;C:\hsqldb;C:\hsqldb\lib\;C:\Program Files\Java\jdk1.6.0_14\bin
Am i missing something
When i run the commannd from my hibernate tytorial program
Code:
c:\Users\mypc\hibernate-tutorial>mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/tutorial"

I get Error meassage as

C:\Users\mypc\hibernate-hello\hibernate-tutorial>mvn exec:java -Dexec.mainClass="org.hsqldb
.Server" -Dexec.args="-database.0 file:target/data/tutorial"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ------------------------------------------------------------------------
[INFO] Building First hibernate tutorials
[INFO] task-segment: [exec:java]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
[INFO] [exec:java {execution: default-cli}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. org.hsqldb.Server

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Wed Jul 15 15:18:59 IST 2009
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------


Top
 Profile  
 
 Post subject: Re: Unable to run hibernate tutorial program [RESOLVED]
PostPosted: Wed Jul 15, 2009 8:15 am 
Newbie

Joined: Wed Jul 15, 2009 4:27 am
Posts: 4
problem was pom.xml given by hibernate tutorial is incorrect i added following dependency
Code:
<dependency>
    <groupId>hsqldb</groupId>
    <artifactId>hsqldb</artifactId>
    <version>1.8.0.10</version>
</dependency>

and bingo all went well


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.