-->
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.  [ 7 posts ] 
Author Message
 Post subject: Hibernate Tools: Stuck at Console Configuration
PostPosted: Wed Nov 09, 2005 9:30 pm 
Newbie

Joined: Wed Nov 09, 2005 9:07 pm
Posts: 8
I'm trying to get Hiberate Tools running in Eclipse, and getting stuck at console configuration.

Deets:
- JBossIDE1.5 RC1 in Eclipse 3.1.1 with Java 5
- PostgreSQL database (tables generated via EJB3/JBoss 4.0.3)
- already defined set of EJB3 persistance classes

My hibernate.cfg.xml setup seems to work fine. When I get to the console configuration, I fill in:

Name: Local
Configuration File: \MyProj\hibernate.cfg.xml

I check the "enable hibernate EJB3 ..." option, and add the following two entries to classpath:

/MyProj/lib/postgresql-8.0-312.jdbc3.jar
/MyProj/bin

(under /MyProj/bin is the usual com/mydomain/... structure)

When I click finish, I get a message box with:

Error while finishing Wizard

Reason:
Probably missing classes or errors with classloading

Clicking on details gives:

java.lang.reflect.InvocationTargetException

Can anybody tell me what I'm doing wrong here? Believe me, I've tried lots of variations on this. I'll be glad to provide more detail.

Thanks

Clay


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 6:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
No full stacktrace in the dialog or in the Error log View ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: No stacktrace
PostPosted: Thu Nov 10, 2005 8:25 am 
Newbie

Joined: Wed Nov 09, 2005 9:07 pm
Posts: 8
max wrote:
No full stacktrace in the dialog or in the Error log View ?


I believe no. I had the error log open, cleared, and it remained that way (and errors have come up on other actions). And the detail from the dialog is verbatim, simply a class name. I'd be happy to try it again, and send some screen shots, etc.

With the previous IDE version (M3 not RC1), I was getting the same error, but the database schema would load in the (um, away from install right now) left-hand window, populated from the database, and not the CMP classes.

If I had to take a guess, I believe it is not mapping the CMP classes correctly. Is it correct to be pointing to the .class files and not .java?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 8:29 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes it uses the .class not the java files.

there must be a full stack trace somewhere...remember to double click on the message line in the error log view.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Error log is empty
PostPosted: Thu Nov 10, 2005 11:26 am 
Newbie

Joined: Wed Nov 09, 2005 9:07 pm
Posts: 8
max wrote:
there must be a full stack trace somewhere...remember to double click on the message line in the error log view.


After pressing Finish, and getting the MsgBox, error log view remains a great expanse of whiteness; i.e, no lines. Moreover, the Console Configuration dialog remains up. I have to press Cancel to get out of it.

Would a stack trace be logged to a file somewhere?

Thanks...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 1:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - look in plugins/org.hibernate.eclipse.console/*.log

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 5:50 pm 
Newbie

Joined: Wed Nov 09, 2005 9:07 pm
Posts: 8
max wrote:
hmm - look in plugins/org.hibernate.eclipse.console/*.log


Looking under the hood in eclipse made me realize that both the RC1 and M3 versions were there, so I deleted the directories from the old version (M3/Hib. Tools Alpha) and I at least got through the console config. I'll start a new thread on the followup problem. Thanks, Max.


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