Hi Holger!
You've solved the problem when the *.xml and PackageConfiguration files are
not in a jar. :) Great work.
However, once I put the entire database/ folder (and all its nested classes
and files) in a jar, I got right back to the error:
Domain configuration file "cayenne.xml" is not found.
Thanks,
Dave Paules
Quantum Leap Innovations
-----Original Message-----
From: Holger Hoffstatte [mailto:holge..izards.de]
Sent: Wednesday, March 05, 2003 10:17 AM
To: Dave Paules; cayenne-user
Subject: Re: Runtime Error: how to find cayenne.xml
Dave Paules wrote:
> For me, this was ineffective.
Yes, congratulations for finding the single remaining bug that was in
there. :-)
You did everything right, I only tested with a single package and not
nested paths.
Just change the PackageConfiguration() constructor to read like the
following:
..
super();
_packagePath = this.getClass().getPackage().getName().replace('.',
File.separatorChar);
..
Now it works with nested packages as well. Sorry for that oversight!
Holger
This archive was generated by hypermail 2.0.0 : Wed Mar 05 2003 - 17:14:28 EST