cayenne-user mailing list archives

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

rigel wrote:
Going into the Cayenne source code I notice that the real message thrown by
EntityResolver.constructCache() is "Failed to load class

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.

View this message in context:
Sent from the Cayenne - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message