-->
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.  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: org.hibernate.cfg.reveng class not found
PostPosted: Wed May 17, 2006 5:22 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
Hi everybody,
i am using hibernate tools and i have a problem: when configuring "Hibernate code generation", the "reveng strategy" path is not found and a classNotFoundException is displayed. I searched in the hibernate library in JRE and i didn't find the class org.hibernate.cfg.reveng.ReverseEngineeringStrategy How can i download this package ????????? Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 5:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it is in hibernate-tools.jar


(btw. it sounds like you are using an old version of hibernate tools)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:35 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
thank you max,
but i don't know why it is not working and the ClassNotFoundException appears my tools version is 3.1.0.beta3 !!!!!! the question is how to tell hibernate tools the path of the reverseEngineering class ?????


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
beta3 ? why are you not using beta5?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:57 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
i am downloading beta5 and will reply , thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 10:19 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
Thank you very much. Beta5 solved the problem bbut i have another problem:
"sessionFactoryError: component class not found"
despite this class is located where others are visible

this is very strange

note that this class has no hbm.xml file beacause it is a composite id class


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 10:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is the stacktrace?

and is that class part of the console configuration classpath ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 10:44 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
All the sibling of the invisible class are visible and this is the strange thing also the classpath is fine


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 10:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is the stack trace?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 10:59 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
how can i see the stack trace


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 12:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look in the Error Log View

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 1:26 pm 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
thank you very much
this problem is solved i wrote the mappings in the cnfg file instead of adding them to the wizard and i added parameters for package, class and resources to each mapping tag

now there is another problem:

when expanding the tree of the database to view fields for type mappings and table/column configuration, the tree views only tables and cannot view fields


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
huh ? I don't understand what part of what you did should fix a missing class problem ?

And the last part can be alot of things ...but mostly something to do with your db and/or driver...which are you using ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 10:18 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
Hi max,

i am using oracle driver "oracle.jdbc.driver.OracleDriver"
The strange thing is that the tree of the hibernate console configuration shows columns perfectly but the Reverse Engineering Editor trees, show only tables names without their columns

Another problem is that global type mappings doesn't apply to the hbm.xml files when using reverse engineering to generate them... instead it uses the default types mapping

thank you


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 12:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Show me your reveng.xml and your hibernate.cfg.xml/hibernate.properties and i'll see why.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page 1, 2  Next

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.