[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1033?page=c...
]
Chris commented on HBX-1033:
----------------------------
Having restarted eclipse, I no longer see the HibernateConsoleRuntimeException. However, I
am still seeing the ClassNotFoundExceptions which suggest there is still a problem with
the classpath. Where is the classpath stored for the Hibernate Console Config?
The exact steps I do the get the error is:
- Create a new config using the wizard for a project that already exists in my workspace.
I don't add any entries to the classpath and rely on the fact it will use the projects
classpath.
- Then when I click on the configuration in the hibernate perspective I get the error.
- Yes I am using 3.2.0 GA, I first come across this problem with CR1, so I installed the
GA version and disabled CR1 and still see the problem.
Here is the stacktrace I am seeing.
!ENTRY org.hibernate.eclipse.console 4 2 2008-01-12 08:52:34.416
!MESSAGE org.hibernate.InvalidMappingException: Could not parse mapping document from
resource com/sepiasoftware/ip/domain/com.sepiasoftware.ip.domain.hbm.xml
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2008-01-12 08:52:34.416
!MESSAGE org.hibernate.InvalidMappingException: Could not parse mapping document from
resource com/sepiasoftware/ip/domain/com.sepiasoftware.ip.domain.hbm.xml
!STACK 0
org.hibernate.InvalidMappingException: Could not parse mapping document from resource
com/sepiasoftware/ip/domain/com.sepiasoftware.ip.domain.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
at
org.hibernate.console.ConsoleConfiguration.loadConfigurationXML(ConsoleConfiguration.java:297)
at
org.hibernate.console.ConsoleConfiguration.configureStandardConfiguration(ConsoleConfiguration.java:531)
at
org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:503)
at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:484)
at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:203)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:185)
at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
at
org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.hibernate.MappingException: class
com.sepiasoftware.ip.domain.SecurityQuestionAnswer not found while looking for property:
id
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:74)
at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:401)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:334)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:273)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:144)
at org.hibernate.cfg.Configuration.add(Configuration.java:669)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:504)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
... 18 more
Caused by: java.lang.ClassNotFoundException:
com.sepiasoftware.ip.domain.SecurityQuestionAnswer
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
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:100)
at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70)
... 26 more
org.hibernate.console.HibernateConsoleRuntimeException: Could not
compute classpath
-----------------------------------------------------------------------------------
Key: HBX-1033
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1033
Project: Hibernate Tools
Issue Type: Bug
Components: eclipse
Affects Versions: 3.2.0.GA
Environment: Hibernate 3.2, MySql 5/0, Eclipse for Java EE Developers( Europa )
Build id: M20070921-1145
Reporter: Chris
After I create a "Hibernate Console Configuration" using the wizard I get the
following error in the eclipse error log.
eclipse.buildId=M20070921-1145
java.version=1.5.0_14
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Fri Jan 11 14:33:38 EST 2008
org.hibernate.console.HibernateConsoleRuntimeException: Could not compute classpath
Folowed by lots of org.hibernate.MappingException because it can't find classes
detailed in the mapping files.
I checked the box to include the projects classpath.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira