cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rigel <zeta...@gmail.com>
Subject Re: Loading cayenne mapped class from URLClassLoader
Date Mon, 24 Nov 2008 05:37:29 GMT



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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message