-->
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.  [ 8 posts ] 
Author Message
 Post subject: error while generating code using hibernate tools
PostPosted: Tue Sep 05, 2006 7:10 am 
Newbie

Joined: Tue Sep 05, 2006 7:02 am
Posts: 3
hi ,

I am trying to use hibernate tools. I followed the same steps as given in the demo.
http://www.jboss.com/products/seam/SeamHBTools.html

I am using eclipse IDE and plug-in for hibernate-tools following this link.
http://www.hibernate.org/255.html


Could any one help me in finding out what could be the problem. Do I need to use any more jars?

I am getting the following error while generating the code

org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
java.lang.NoClassDefFoundError: org.hibernate.cfg.reveng.OverrideRepository
java.lang.NoClassDefFoundError: org.hibernate.cfg.reveng.OverrideRepository


Thanks in advance,
Kalyani


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 05, 2006 3:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't put hibernate tools or any hibernate jar's into the console configuration classpath.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 6:49 am 
Newbie

Joined: Tue Sep 05, 2006 7:02 am
Posts: 3
Thanks for the reply.

I just put the postgresql driver jar in the path and nothing else.

Could you please help me in solving the issue.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 06, 2006 7:32 am 
Beginner
Beginner

Joined: Thu Nov 25, 2004 7:07 am
Posts: 43
Location: Germany
All required jars are in the lib directory of hibernate tools. If you use Ant you can take these jars in the classpath to execute hibernate tools.

:edit
The JDBC driver has to be added additionally.

_________________
You'll never get a second chance to make a first impression!


Top
 Profile  
 
 Post subject: hibernate tools
PostPosted: Thu Sep 07, 2006 12:56 am 
Newbie

Joined: Tue Sep 05, 2006 7:02 am
Posts: 3
hi,
I installed eclipse-3.2
I copied plugins and features in HibernateTools-3.2.0.beta7.zip to eclipse plugins and features directory. I am following the demo in the link http://www.jboss.com/products/seam/SeamHBTools.html
and trying to do code generation, and hbm file for the tables in the postgresql.
I got the error mentioned.


I didnt find any lib directory in the tools zip file. I am not using ant to do the task,
Whether the procedure I am following is correct or not?


Thanks in advance.

Kalyani


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 2:04 am 
Beginner
Beginner

Joined: Thu Nov 25, 2004 7:07 am
Posts: 43
Location: Germany
The lib directory is located in plugins/org.hibernate....beta7/lib

There are some directories like tools, hibernate, and so on. But if you use Eclipse I think you don't have to add it to your classpath explicitly because it's loaded as a plugin. I think you just need the JDBC drivers.

Just have a closer look at your ClassNotFoundException. It says "probably the console configuration classpath is incomplete or contains conflicting versions of the same class" - maybe you have an older version of Hibernate Tools installed additionally or somewhere in your classpath is an older version of hibernate-tools.jar.

_________________
You'll never get a second chance to make a first impression!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 4:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the libaries inside the plugin has *nothing* todo with your java projects inside eclipse.

The plugin libraries are the one used by the plugin itself.

The codegeneration does not "inject" libraries into your java project since it assumes you have configured your project with the required libraries.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 3:31 pm 
Newbie

Joined: Tue Jan 10, 2006 9:22 am
Posts: 6
I am having the same problem. Have you solved this problema?

_________________
Best regards
Dirceu Semighini Filho


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