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.  [ 3 posts ] 
Author Message
 Post subject: hibernator:execute query
PostPosted: Sun Jan 22, 2006 10:24 pm 
Beginner
Beginner

Joined: Mon Dec 05, 2005 2:59 am
Posts: 31
hibernator log shows the following :

Ignoring resources in Project output: /SY-MIS-Client/build/classes
Adding Project Depedents C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/lib/hibernate/commons-logging-1.0.4.jar
Adding Project Depedents C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/lib/hibernate/hibernate3.jar
Adding Project Classpath file:/C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/build/classes/
Adding Mapping - C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/ejbModule/model/User.hbm.xml
Adding Mapping - C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/ejbModule/model/ServiceType.hbm.xml
Adding Mapping - C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/ejbModule/model/Service.hbm.xml
Adding Mapping - C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/ejbModule/model/Company.hbm.xml
Adding Mapping - C:/Documents and Settings/jennyhii/workspace/SY-MIS-Client/ejbModule/model/Authorizer.hbm.xml


is this mean that i have map the data in the database successfully???

by the way, i don't know how to execute task as shown in query view. can anyone give me some example??? thanx.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 2:25 am 
Beginner
Beginner

Joined: Mon Dec 05, 2005 2:59 am
Posts: 31
this is the error when i typed 'show tables' in query view log. anyone can help me to figure out wat happen??

java.lang.ClassNotFoundException: as
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 net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:71)
at net.sf.hibernate.mapping.Value.createIdentifierGenerator(Value.java:82)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:497)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:665)
at net.sf.hibernate.persister.PersisterFactory.create(PersisterFactory.java:29)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:207)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)
at net.sf.hibernator.HibernateConnection.query(HibernateConnection.java:185)
at net.sf.hibernator.views.QueryView$QueryTask.run(QueryView.java:255)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
rethrown as net.sf.hibernate.MappingException: could not instantiate id generator: as
at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:77)
at net.sf.hibernate.mapping.Value.createIdentifierGenerator(Value.java:82)
at net.sf.hibernate.persister.AbstractEntityPersister.<init>(AbstractEntityPersister.java:497)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.java:665)
at net.sf.hibernate.persister.PersisterFactory.create(PersisterFactory.java:29)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:207)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)
at net.sf.hibernator.HibernateConnection.query(HibernateConnection.java:185)
at net.sf.hibernator.views.QueryView$QueryTask.run(QueryView.java:255)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.ClassNotFoundException: as
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 net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:71)
... 9 more


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 23, 2006 4:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernator is very old and not maintained.

i suggest using hibernate console from the latest hibernate 2 tools or try and use the latest from tools.hibernate.org (but this last one requires hibernate 3)

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