All,
     I changed the database.xml so that it had no path to the mapping file, since the mapping file and database file are in the same location.  I then tested the same setup but with the mapping file in a directory called "mapping" that was in the same directory as the database file.  This worked too.  I think this was an oversight on our part.  Before 0.9.6, which we are were using 0.9.5.3, mapping was done differently and I think this is being done by design.  If I can help further, let me know.

Take care,
     Jeremy

On 9/21/05, Bruce Snyder <[EMAIL PROTECTED]> wrote:
On 9/21/05, Ralf Joachim <[EMAIL PROTECTED]> wrote:

> you have to options to specify mapping in jdo-conf.xml/database.xml.
>
> 1. you can specify an absolute path
> 2. with relative path it is interpreted to be relative to the position
> of the jdo-conf.xml/database.xml file. But there is a restiction if the
> configuartion files are in jars, they need to be in the same jar file in
>  this case.
>
> Having said that I'm not sure if Bruce is right and this is a bug as the
> behaviour to load mapping files have changed with 0.9.6.

The reason that I feel this is a bug is due to the path in which
Jeremy says Castor is looking for the XML mapping descriptor:

META-INF/META-INF/cmp.or-mapping.xml

I'm interpreting this as Castor requiring a directory named META-INF
that contains another directory named META-INF in which it will find
the cmp.or-mapping.xml file. Why should a user be requied to specify
the path to the XML mapping descriptor in this manner? I don't
understand why this path requirement is OK?

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




--
Take care,
     Jeremy

Reply via email to