-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Console problem
PostPosted: Mon Oct 03, 2005 9:33 pm 
Newbie

Joined: Fri Feb 20, 2004 12:15 pm
Posts: 8
Anybody has a clue of what is going on here ?

My application works fine, I have a hibernate.properties + hibernate.cfg.xml but I'm trying to use Hibernate Console and when I either refresh my configuratin or try to create a Session Factory from it, here's what I get.


Hibernate version:
3.0

Full stack trace of any exception that occurs:
!ENTRY org.eclipse.core.runtime 4 2 2005-10-03 21:08:49.468
!MESSAGE An internal error occurred during: "Fetching children of Backend".
!STACK 0
org.hibernate.MappingException: Could not read mapping document from file: C:\Documents and Settings\...\workspace\Backend\src\com\...\print\batch\Batch.hbm.xml
at org.hibernate.cfg.Configuration.addFile(Configuration.java:262)
at org.hibernate.console.ConsoleConfiguration$1.execute(ConsoleConfiguration.java:144)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:123)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:107)
at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:19)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:68)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Caused by: org.hibernate.MappingException: class com.....bo.TimeStampImpl not found while looking for property: user
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:80)
at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:58)
at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2040)
at org.hibernate.cfg.HbmBinder.bindComponent(HbmBinder.java:1777)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1965)
at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1915)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:369)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:285)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:156)
at org.hibernate.cfg.Configuration.add(Configuration.java:378)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:417)
at org.hibernate.cfg.Configuration.addFile(Configuration.java:259)
... 8 more
Caused by: java.lang.ClassNotFoundException: com.mathd.darwin.bo.TimeStampImpl
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:76)
... 19 more
Name and version of the database you are using:
Postgresql with driver 312


I don't understand why it can't find that TimeStampImpl class when it finds everything else.

classpath issue ? How can I verify which classpath is the console using ?

lacou


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 2:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you double click on the configuration and look in the classpath - should be pretty simple, eh ? :)

_________________
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.  [ 2 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.