[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1124) BasicWorkbenchAdapter Classpath not found in hibernate configuration

Clay Graham (JIRA) noreply at atlassian.com
Sat Jun 6 17:36:13 EDT 2009


BasicWorkbenchAdapter Classpath not found in hibernate configuration
--------------------------------------------------------------------

                 Key: HBX-1124
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1124
             Project: Hibernate Tools
          Issue Type: Bug
    Affects Versions: 3.2.4.GA
         Environment: Mac Book Pro, Eclipse Platform

Version: 3.4.2
Build id: M20090211-1700


            Reporter: Clay Graham
         Attachments: eclipse-config.txt, momentarynow.launch, Picture 1.png

I know this is a problem that many newbies trip on, and I have spent many hours researching this before filing a bug. Saying that after 20 years of windoze use I just bought a new Mac Book pro, which I love, and I am trying to get my development environment together. I use the maven2 plugin from sonotype, the subversion plugin, the tomcat plugin, and >the hibernate plugin< as my core development platform (JDK 1.6) with eclipse.

Version: 3.2.4.GA-R200905070146-H18

The only problem I have had is with the Hibernate Tools plugin. Specifically the classpath for the project cannot be found when attempting to rebuild the configuration:

Error
Sat Jun 06 14:08:00 PDT 2009
java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest

java.lang.ClassNotFoundException: com.noi.momentary.model.ConnectRequest
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:483)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:399)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
	at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:70)
	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.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:483)
	at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:277)
	at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter$1.execute(ConsoleConfigurationWorkbenchAdapter.java:45)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:41)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:99)
	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105)
	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

So I have tried a *bunch* of things to resolve this (attached images)

1. make sure the project (default) classpath is in the configuration
2. make sure a jar, which is built, is in the configuration
3. make sure the maven build target class dir is in the configration

no matter what I have tried it always comes back the same, the class path cannot be found which is necessary for the configuration to bind to the database.

here is one interesting detail: I have exported the configuration file (attached) and there seems to be some XML encoded entries in the file. This seems different than most XML configuration files I have seen before.

I would love a fix for this. I love this tool.

I am happy to provide more information if its helpful. 





-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list