Re: Failed to load domain and/or its maps/nodesAndrus,
thanks for the reply. It turned out to be that my oracle driver was not in the classpath. Stupid error to spend hours on... but hey at least I am past it now.
The note you send out regarding the error handling, is a great idea. Would have saved a lot of time on my end at least.
Also, making it more plain how to set up the logging. I didn't realize that the HOME directory was under the user profile vs just being the project root directory.
Thanks again.
Troy
p.s. great tool/api - it was a great timesaver, even with the issue above. :-)
----- Original Message -----
From: Andrus Adamchik
To: cayenne-deve..bjectstyle.org
Sent: Monday, March 31, 2003 5:43 PM
Subject: Re: Failed to load domain and/or its maps/nodes
While Troy's question is being discussed on the cayenne-user, I think it raises an issue we must address in the upcoming beta.
The exception below is the most often quoted error that new users get. At least 3 people mailed me privately about this last month. Reasons ranged from typos in database URLs to JDBC drivers not included in the CLASSPATH, i.e all kinds of environment configuration issues, not directly related to Cayenne. Cayenne's fault here is insufficient error reporting. While this could be fixed by turning on logging, such solution is not obvious and the exceptions must be self explanatory by definition.
My solution to that would be to create a new method "String ConfigStatus.describeFailures()" and add the output of this method to the message of the thrown exception. Before I do that, I wanted to post to this list, since Holger was lately working on configuration logging issues and I don't want to interfere with his work.
Andrus
On Monday, March 31, 2003, at 07:26 PM, Troy McKinnon wrote:
ERROR Configuration: Error initializing shared Configuration
org.objectstyle.cayenne.ConfigException: [org.objectstyle.cayenne.conf.DefaultConfiguration] : Failed to load domain and/or its maps/nodes.
at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:420)
at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:125)
at org.objectstyle.cayenne.conf.Configuration.init(Configuration.java:278)
at org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:228)
at org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:219)
at org.objectstyle.cayenne.conf.Configuration.initSharedConfig(Configuration.java:197)
at org.objectstyle.cayenne.conf.Configuration.getSharedConfig(Configuration.java:168)
at org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.java:155)
This archive was generated by hypermail 2.0.0 : Mon Mar 31 2003 - 21:45:43 EST