-->
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: entity not found
PostPosted: Tue Dec 13, 2005 11:13 pm 
Beginner
Beginner

Joined: Sun Dec 05, 2004 10:25 am
Posts: 23
I just upgraded to beta 2 of tools 3.1 and now in the Hibernate Console I am getting an error in eclipse that says entity not found. It is there. What can I do?

My eclipse log

Code:
!ENTRY org.hibernate.eclipse.console 4 4 2005-12-13 22:13:22.578
!MESSAGE Problems while creating sessionfactory
!STACK 0
org.hibernate.MappingException: entity class not found: com.mos.pman.model.AclPermission
   at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:99)
   at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:166)
   at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:115)
   at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
   at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:265)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
   at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:260)
   at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
   at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:70)
   at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Caused by: java.lang.ClassNotFoundException: com.mos.pman.model.AclPermission
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
   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.mapping.PersistentClass.getMappedClass(PersistentClass.java:96)
   ... 16 more
!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2005-12-13 22:13:22.578
!MESSAGE java.lang.ClassNotFoundException: com.mos.pman.model.AclPermission
!STACK 0
java.lang.ClassNotFoundException: com.mos.pman.model.AclPermission
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
   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.mapping.PersistentClass.getMappedClass(PersistentClass.java:96)
   at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:166)
   at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:115)
   at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
   at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:265)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
   at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:260)
   at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
   at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:70)
   at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2005-12-13 22:13:22.578
!MESSAGE java.lang.ClassNotFoundException: com.mos.pman.model.AclPermission
!STACK 0
java.lang.ClassNotFoundException: com.mos.pman.model.AclPermission
   at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:405)
   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.mapping.PersistentClass.getMappedClass(PersistentClass.java:96)
   at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:166)
   at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
   at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:115)
   at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
   at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
   at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
   at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
   at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1154)
   at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:265)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:68)
   at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:260)
   at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:24)
   at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:70)
   at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:192)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 2:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
is this class in the classpath of the console configuration ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 2:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
is this class in the classpath of the console configuration ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 2:43 am 
Beginner
Beginner

Joined: Sun Dec 05, 2004 10:25 am
Posts: 23
uhh yea and it works now :-s I knew that. Sorry. duh.


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.