Re: Loading cayenne mapped class from URLClassLoader

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Nov 24 2008 - 02:39:46 EST

  • Next message: rigel: "Re: Loading cayenne mapped class from URLClassLoader"

    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.



    This archive was generated by hypermail 2.0.0 : Mon Nov 24 2008 - 02:40:23 EST