problem creating standalone DataContext

From: Lothar Krenzien (lkrenzie..eb.de)
Date: Wed Jan 04 2006 - 06:22:43 EST

  • Next message: Tomi NA: "Re: Modeller M9 Problem"

    Hi there,

    for testing purposes (JUnit for example) I want to create a DataContext using the following command: DataContext.createDataContext().
    But I get always an error like that "URL not found with classloader: cayenne.xml" . I tried it also with these commands :
      CayenneDataContextManager.createDataContext("LocalDomain")
      DataContext.createDataContext()

    I have the cayenne.xml and LocalDomain.map.xml files in my Web-INF dir and a copy in the root of the source dir. But nothing works. When I create the DataContext from a request with the command
      CayenneDataContextManager.getDataContext(ctx.getRequest())
    it works fine. so what I'm doing wrong ?

    Thanks, Lothar
    ______________________________________________________________
    Verschicken Sie romantische, coole und witzige Bilder per SMS!
    Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



    This archive was generated by hypermail 2.0.0 : Wed Jan 04 2006 - 06:22:47 EST