Re: 'cayenne.xml' is not found

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Apr 14 2005 - 09:04:54 EDT

  • Next message: Pirola Davide: "RE: How i can read at runtime datasource info?"

    > 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(Configuration.java:304)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:278)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:261)
    > at
    > org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:224)
    > at
    > org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.java:252)
    >



    This archive was generated by hypermail 2.0.0 : Thu Apr 14 2005 - 09:04:55 EDT