Re: 'cayenne.xml' is not found

From: Emre Yilmaz (emre.yilma..tr.com.tr)
Date: Fri Apr 15 2005 - 01:00:28 EDT

  • Next message: Andrus Adamchik: "Cayenne release schedule"

    Thanks it is work.

    ----- Original Message -----
    From: "Andrus Adamchik" <andru..bjectstyle.org>
    To: <cayenne-use..bjectstyle.org>
    Sent: Thursday, April 14, 2005 4:04 PM
    Subject: Re: 'cayenne.xml' is not found

    > I put the cayenne.xml in the same
    > directory with this class

    Is your class located in a package? Then you need to put cayenne.xml and
    other XML files produced by the Modeler in the root directory of your
    class hierarchy (or at the top level of the JAR file).

    Andrus

    > Hello,
    >
    > I write a class in which I call the datacontexts with (context =
    > dataContext.createDataContext();) and I put the cayenne.xml in the same
    > directory with this class
    > but I get the ""cayenne.xml" is not found" error. Can anybody help me.
    >
    > Thanks.
    >
    > ERROR:
    > org.objectstyle.cayenne.ConfigurationException: [v.1.1RC2 October 24
    > 2004] Error during Configuration initialization. [v.1.1RC2 October 24
    > 2004] [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain
    > configuration file "cayenne.xml" is not found.
    > at
    >
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:304)
    > at
    >
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:278)
    > at
    >
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Con
    figuration.java:261)
    > at
    >
    org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configurat
    ion.java:224)
    > at
    >
    org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.jav
    a:252)
    >



    This archive was generated by hypermail 2.0.0 : Fri Apr 15 2005 - 01:04:25 EDT