-->
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: New to hibernate getting this error
PostPosted: Tue Jun 20, 2006 3:10 am 
Newbie

Joined: Tue Jun 20, 2006 3:01 am
Posts: 4
i am very new to hibernate and i am facing this problem as i read the doucmentation it says that

Create a directory called data in the root of the development directory - this is where HSQL DB will store its data files. Now start the database by running java -classpath lib/hsqldb.jar org.hsqldb.Server in this data directory. You can see it start up and bind to a TCP/IP socket, this is where our application will connect later. If you want to start with a fresh database during this tutorial, shutdown HSQL DB (press CTRL + C in the window), delete all files in the data/ directory, and start HSQL DB again.

Now i have a devlopment directory C:\hproject and i create a 'data' directory in hproject so it is c:/hproject/data now when i run 'java -classpath lib/hsqldb.jar org.hsqldb.Server' in this directory it gives me errors........


C:\hproject\data>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
[Server@26e431]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@26e431]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@26e431]: Startup sequence initiated from main() method
[Server@26e431]: Loaded properties from [C:\hproject\data\server.properties]
[Server@26e431]: Initiating startup sequence...
[Server@26e431]: Server socket opened successfully in 47 ms.
java.lang.NoClassDefFoundError
at org.hsqldb.persist.Logger.closeLog(Unknown Source)
at org.hsqldb.Database.reopen(Unknown Source)
at org.hsqldb.Database.open(Unknown Source)
at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
at org.hsqldb.Server.openDatabases(Unknown Source)
at org.hsqldb.Server.run(Unknown Source)
at org.hsqldb.Server.access$000(Unknown Source)
at org.hsqldb.Server$ServerThread.run(Unknown Source)

this says that Loaded properties from server.properties and i never been asked to have a file called server.properties here so it is created or what is the problem please help........thansk pushnpop



Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 20, 2006 4:51 am 
Newbie

Joined: Tue Jun 20, 2006 3:01 am
Posts: 4
i am unable to run an example given in download and it has the problem decribed in the topic......please if anyone can help


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.