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.
This archive was generated by hypermail 2.0.0 : Mon Nov 24 2008 - 00:38:05 EST