Re: IllegalArgumentException

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jul 08 2004 - 14:18:15 EDT

  • Next message: Kevin J. Menard, Jr.: "Re: IllegalArgumentException"

    On Jul 8, 2004, at 1:49 PM, Kevin J. Menard, Jr. wrote:

    >
    >> One possible fix is to bootstrap the right ClassLoader. You can follow
    >> the advise given here:
    >>
    >> http://objectstyle.org/cayenne/lists/cayenne-user/2004/06/0078.html
    >
    > After changing my code from using the Cayenne WebApplicationListener
    > so I
    > could change the class loader in init(), things seem to be working.
    > Not
    > quite as transparent as I was looking for, but since I spent the better
    > part of last night looking for a solution, I'm just glad to have it
    > working.
    >
    > Thanks,
    > Kevin

    I assume you have cayenne.jar in a shared location? Putting it under
    mywebapp/WEB-INF/lib/ instead should make it transparent and avoid
    explicit bootstrapping. It wasn't me who invented the servlet spec and
    nested ClassLoaders ;-)

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Jul 08 2004 - 14:18:19 EDT