Re: Path error

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Feb 23 2005 - 20:29:36 EST

  • Next message: Roman D: "Re: question about key generation"

    On Feb 23, 2005, at 5:14 AM, emre wrote:

    > Hello,
    >  
    > I have a problem with cayenne. I want to set
    > [DataContext.createDataContext();] in different folder from
    > cayenne.xml. So I get this error and can you explain how i reach
    > cayenne.xml path from diffent folder to creat DataContext.
    >  
    > Error message:
    > 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.
    >  
    > thanks for helps:-)

    Emre,

    Could you explain your directory layout? This is not very clear from
    your message. In runtime where do you have your *.class files and where
    do you keep cayenne.xml and other Cayenne-related XML files? XML files
    generally have to be in the root of the application CLASSPATH, just
    like *.class files. If you want to put cayenne.xml in an alternative
    directory, use FileConfiguration:

    http://www.objectstyle.org/cayenne/lists/cayenne-user/2004/06/0034.html

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Feb 23 2005 - 20:29:39 EST