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
|