Error when running the Main class of the cmd line tutorial

From: Behrang Saeedzadeh (behrangs..mail.com)
Date: Sat Jun 25 2005 - 23:37:57 EDT

  • Next message: Andrus Adamchik: "Re: The Command-Line Tutorial is a little bit confusing"

    Hi

    When I run the Main class of the cmd line tutorial I get the following
    exception:

    D:\Java\Cayenne-1.2M4\src\tutorials\cayenne-cmd-app>java test.Main metro
    Exception in thread "main" org.objectstyle.cayenne.ConfigurationException:
    [v.1.
    2M4 May 7 2005] Error during Configuration initialization. [v.1.2M4 May 7
    2005]
    [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain configuration
    file
    "cayenne.xml" is not found.
             at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurat
    ion(Configuration.java:322)
             at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurat
    ion(Configuration.java:296)
             at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurat
    ion(Configuration.java:279)
             at
    org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Con
    figuration.java:225)
             at test.Main.createContext(Main.java:46)
             at test.Main.<init>(Main.java:33)
             at test.Main.main(Main.java:28)
    Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.2M4 May 7
    2005]
    [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain configuration
    file
    "cayenne.xml" is not found.
             at
    org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultC
    onfiguration.java:198)
             at
    org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurat
    ion(Configuration.java:314)
             ... 6 more

    D:\Java\Cayenne-1.2M4\src\tutorials\cayenne-cmd-app>

    Any ideas what has went wrong?

    Best Regards,
    Behrang S.

    -- 
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
    



    This archive was generated by hypermail 2.0.0 : Sat Jun 25 2005 - 23:38:04 EDT