-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate tool doesn't show the database
PostPosted: Thu Mar 23, 2006 8:31 am 
Newbie

Joined: Fri Mar 17, 2006 7:00 am
Posts: 5
Hello

I installed the most recent hibernate plug-in into my eclipse (wtp-all-in-one-0.7) 3.1.0 and I can't make it work. I created hibernate.cfg.xml and made the console configuration. In Hibernate configurations view I can see my new configuration object and in the subtree there are three elements just as it was written in tutorial: Configuration, Session factory and Database. The thing is that when I click on the database all I can see is caption "pending.." (the only way to cancel this is close the whole eclipse) and no database tables are being loeaded. The log file in my project is being filled with thousands of lines with some warning messages. I will show only first couple of them:



Code:
!ENTRY org.hibernate.eclipse 2 30000 2006-03-23 12:59:37.405
!MESSAGE WARN Worker-2 net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: bundleresource://291/ehcache-failsafe.xml

!ENTRY org.hibernate.eclipse 2 30000 2006-03-23 13:00:54.625
!MESSAGE WARN Worker-3 org.hibernate.cfg.JDBCBinder - The JDBC driver didn't report any primary key columns in MRV$OLAP2_LISTDIMS_CC. Asking rev.eng. strategy

!ENTRY org.hibernate.eclipse 2 30000 2006-03-23 13:00:54.635
!MESSAGE WARN Worker-3 org.hibernate.cfg.JDBCBinder - Rev.eng. strategy did not report any primary key columns for MRV$OLAP2_LISTDIMS_CC

!ENTRY org.hibernate.eclipse 2 30000 2006-03-23 13:00:54.755
!MESSAGE WARN Worker-3 org.hibernate.cfg.JDBCBinder - The JDBC driver didn't report any primary key columns in WK$MAILLIST. Asking rev.eng. strategy

!ENTRY org.hibernate.eclipse 2 30000 2006-03-23 13:00:54.785
!MESSAGE WARN Worker-3 org.hibernate.cfg.JDBCBinder - Rev.eng. strategy did not report any primary key columns for WK$MAILLIST



the rest looks like those last two, only names of the tables are different.

It tells me nothing so meybe someone could help me with that? I use Oracle database, my url is good - the same hibernate.cfg.xml installed on the serwer works fine, I just can't make it work from the eclipse. Maybe I need some libraries?

HELP!

Ania


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 5:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so it is in the process of scanning your whole database - great right ;)

In the current release the best way to limit this one is set default_schema to the schema you are interested in at it should be much faster for you.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 4:08 am 
Newbie

Joined: Fri Mar 17, 2006 7:00 am
Posts: 5
Ok thanks, it helped, but it's not working yet. Now my database is not showing me "pending..." caption, actually it shows me totally nothing. In my log file I can see only three error messages:

Code:
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.RuntimeException: Property not located:IProjectComponentsBuilderDataModelProperties.ADDITIONAL_DEPENDENT_BUILDER_DM_LIST
...


Code:
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.RuntimeException: Property not located:IProjectComponentsBuilderDataModelProperties.ADDITIONAL_DEPENDENT_BUILDER_DM_LIST
...


Code:
!MESSAGE Errors during build.
!SUBENTRY 1 org.eclipse.wst.common.modulecore 2 75 2006-03-24 08:55:15.522
!MESSAGE Errors running builder "Component Structural Builder" on project HibTest.
!SUBENTRY 1 org.eclipse.wst.common.modulecore 2 75 2006-03-24 08:55:15.522
!MESSAGE Property not located:IProjectComponentsBuilderDataModelProperties.ADDITIONAL_DEPENDENT_BUILDER_DM_LIST
!STACK 0
java.lang.RuntimeException: Property not located:IProjectComponentsBuilderDataModelProperties.ADDITIONAL_DEPENDENT_BUILDER_DM_LIST
...


They look quite similar so I assume it's the same (one) problem :]. Maybe you have some idea what is the couse?

Thanks for help,

Ania


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 4:26 am 
Newbie

Joined: Fri Mar 17, 2006 7:00 am
Posts: 5
Hi, it works now :) It turns out that size of letters makes difference - I just used wrong default_schema name prevoiusly. Those errors are still in the log file, and couple of new ones but now that I can see my database I'm not going to worry about that - until next time something won't wokr :)

Thanks again,

Ania


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