cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Loading cayenne mapped class from URLClassLoader
Date Mon, 24 Nov 2008 07:39:46 GMT
Hi, could you possibly try it with Cayenne 3.0M4? I think it should  
already be fixed there.

Cheers,
Andrus

On Nov 24, 2008, at 7:37 AM, rigel wrote:

>
>
>
> rigel wrote:
>>
>>
> Hello,
>>
>>
> [...]
>>
>>
> Going into the Cayenne source code I notice that the real message  
> thrown by
> EntityResolver.constructCache() is "Failed to load class
> org.someproject.orm.cayenne.SomeEntity:
> org.someproject.orm.cayenne.SomeEntity"
>>
>>
>
> Solved by myself, just for other people interested to use  
> URLClassLoader
> with Cayenne: replace the bundled "org.apache.cayenne.util.Util"  
> with a
> patched one which uses Class.forName(className)  into  
> "getJavaClass()" as
> last chance, instead of "Class.forName(className, true,  
> classLoader)", keep
> it as pre-last chance.
>
> Bye
> -- 
> View this message in context: http://www.nabble.com/Loading-cayenne-mapped-class-from-URLClassLoader-tp20654024p20655214.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.


Mime
View raw message