-->
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.  [ 2 posts ] 
Author Message
 Post subject: Have Classloader Question
PostPosted: Thu May 29, 2008 9:59 pm 
Newbie

Joined: Thu May 29, 2008 9:28 pm
Posts: 6
I am writing an Eclipse plugin which will use Hibernate to retrieve and update data, but the jar containing the persistent model classes, xbm and cfg xml files is not know until runtime and so cannot be included in the classpath. I have tried various ways, using a custom classloader to load my classes, but inevitably get a NoClassDefFound exception. While the new classloader can find my classes, Hibernate classes can't find mine.

Any suggestions?

Thanks!
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 02, 2008 10:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
osgi redefines classloading and thus frameworks relying on standard java classloading will have issues.

Eclipse provides a notion of buddy classloading to solve this exact problem.

Google it and you should find plenty of examples.

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