-->
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: a class loading problem encountered in caing Criteria.list()
PostPosted: Fri Dec 03, 2004 1:36 pm 
Beginner
Beginner

Joined: Mon Nov 15, 2004 8:32 pm
Posts: 36
Hi,
When we call Criteria.list to retrieve a bunch of persistent objects, we encounter a class loading problem. Basically hibernate is using the class loader that loads itself to load the persistent class, however, the class loader that load hibernate doesn't know about the persistent class, so we got a "class not found". Is there a way to direct hibernate which class loader to use?

Thanks,
--Jiunjiun

[b]Hibernate version:[/b]
2.1.7
[b]Mapping documents:[/b]
N/A
[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Top
 Profile  
 
 Post subject: sorry, should be "calling" not "caing"
PostPosted: Fri Dec 03, 2004 1:37 pm 
Beginner
Beginner

Joined: Mon Nov 15, 2004 8:32 pm
Posts: 36
typo


Top
 Profile  
 
 Post subject: stack trace to indicate the problem
PostPosted: Fri Dec 03, 2004 1:42 pm 
Beginner
Beginner

Joined: Mon Nov 15, 2004 8:32 pm
Posts: 36
net.sf.hibernate.HibernateException: class not found
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3627)
at net.sf.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:238
Caused by: java.lang.ClassNotFoundException: Cannot find class com.sun.hss.services.fwdeployment.impl.FirmwarePackageJDO in module public_com.sun.hotdog.domain
at com.sun.cacao.ModuleClassLoader.findClassInDependencies(ModuleClassLoader.java:156)
at com.sun.cacao.ModuleClassLoader.findClass(ModuleClassLoader.java:128)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:3624)


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.