-->
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.  [ 6 posts ] 
Author Message
 Post subject: problem with configuration when trying reverse engineering.
PostPosted: Tue Apr 04, 2006 10:53 am 
Newbie

Joined: Fri Mar 24, 2006 5:20 am
Posts: 13
Location: Zaragoza
Hi everybody.

I'm a trainee who is trying to do reverse engineering. In order to do that I can use MyEclipse trial version and everything goes all right, but I'm not able to use the free tools.

I don't know if my trainer would spend money in purchasing MyEclipse, so I'm a little worried.

Anyway, the fact is that when I want to create a Hibernate Console Configuration (because I've already written my Hibernate.cfg.xml file), I follow every step to fill the blanks (name, configuration file, mapping files I have and classpath where my JDBC driver is) and click the finish button ... nothing happens.

I go to "Hibernate Configurations" which appears in Hibernate Console view and nothing is there. However, and this is the most amazing thing, when I try to make another configuration, I'm not allowed because "a configuration with that name already exists!" I can't believe it.

So, what's the problem? Is MyEclipse disturbing Eclipse? I don't think so because I read in any place that they can work together (perhaps in MyEclipse page or forums).

Well, I think that this is the problem when I try to do "hibernate code generation", but I'm not sure. When I try to run this "hibernate code generation" I get the next exception:

Code:
Exception while generating code

Reason:
org.hibernate.MappingException: Resource: grid.hbm.xml not found


I can swear that file is in the classpath (actually it's in the main folder), and I can't edit my hibernate configuration because it doesn't appear in "Hibernate Configurations".

What can I do?

Thanks a lot for helping me.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 04, 2006 1:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what happens if you restart eclipse with eclipse -clean ? does it then work ?

and no, currently myeclipse and hibernate tools is incompatible since they made a custom repackaging of hibernate tools which collide with our distribution of the tools.

I recommend having myeclipse and hibernate tools installed in separate eclipse installations until Genuitec solves this incompability (they/we are working on it)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 2:42 am 
Newbie

Joined: Fri Mar 24, 2006 5:20 am
Posts: 13
Location: Zaragoza
Thanks a lot , it worked if I install another eclipse!
Now, I'm thinking I could have tried this for my own, but thanks a lot again!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 3:51 am 
Newbie

Joined: Fri Mar 24, 2006 5:20 am
Posts: 13
Location: Zaragoza
Wow, I'm sorry, but I don't know how to solve another problem.

I can get my configuration well, but when I try to make Hibernate code generation, I obtain the next message:


Code:
Exception while generating code

Reason:
org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find one argument delegate constructor


And if I show details:


Code:
Could not create or find with one argument dlegate constructor
  java.land.ClassNotFoundException:

     java.land.ClassNotFoundException:


I think I have imported everything I need(e.g my databaseconnector, JRE System Library, hibernate3.jar and every file in hibernate lib), so I don't think this could be the problem.

I've read in a post that a person who had got the same error, made it to work upgrading his tool version, but I'm using 3.1.0.beta3, the one I think is the last one.

Thanks for your help.

Another thing, should I have posted this issue here or in a new post? I'd like to follow the rules... Excuse me if I don't.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 6:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
are you sure you are using the latest beta4a release ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 7:05 am 
Newbie

Joined: Fri Mar 24, 2006 5:20 am
Posts: 13
Location: Zaragoza
Sorry because of this stupid question, I've already updgraded my version and it works more or less correctly. I've got some problems with a table or two of my database where the JDBC driver doesn't report primary key columns, but I'll solve the problem editing my reveng file or I will map these tables handly.


Thanks a lot again!


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