Re: openjpa.metamodel problem with multiple classloaders

2012-07-20 Thread garpinc
In my application I have to dynamically generate the domain objects at runtime hence the need for multiple classloaders. -- View this message in context: http://openjpa.208410.n2.nabble.com/openjpa-metamodel-problem-with-multiple-classloaders-tp7580606p7580664.html Sent from the OpenJPA Users

Re: openjpa.metamodel problem with multiple classloaders

2012-07-20 Thread Rick Curtis
This might be a stupid question, but can you do all of your work in classloader #2(rather than some in #1 and run in #2)? Thanks, Rick On Fri, Jul 20, 2012 at 7:47 AM, garpinc garp...@yahoo.com wrote: In my application I have to dynamically generate the domain objects at runtime hence the

Re: openjpa.metamodel problem with multiple classloaders

2012-07-20 Thread garpinc
I'm doing all my work in classloader #2 by setting the ThreadContext classloader but basically this is an OSGI application so there are bundle classloaders as well involved. -- View this message in context:

Re: openjpa.metamodel problem with multiple classloaders

2012-07-18 Thread Rick Curtis
Can I ask why the multiple classloaders? Historically OpenJPA has been temperamental when you start touching classloaders. Thanks, Rick On Sat, Jul 14, 2012 at 9:44 AM, garpinc garp...@yahoo.com wrote: in 2.2.0 I got this exception thrown in MetaModelImpl.class if (cls !=

openjpa.metamodel problem with multiple classloaders

2012-07-14 Thread garpinc
in 2.2.0 I got this exception thrown in MetaModelImpl.class if (cls != anno.value()) { throw new IllegalStateException(_loc.get(meta-class-mismatch, mcls.getName(), cls.getName(), anno.value()).getMessage()); } cls and anno.value() toStrings