You must put a directory that contains "cayenne.xml" in CLASSPATH.
Andrus
On Jun 25, 2005, at 11:37 PM, Behrang Saeedzadeh wrote:
> 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:42:30 EDT