Hi,
well i have not to worry about loading the child mappings. ok!
Do you know something about the other question? The master mapping is read
successfully and the descriptors loaded too, but the generated XML has no
the structure that I want: it seems that the loaded mapping is ignored. I
don't know if you can understand what I mean! The mappings are rigth,
because I've tested them.
Can you help me, please?
Thanks!
Regards,
Ralf Joachim-2 wrote:
>
> Hi sweex,
>
> if you load your master mapping Castor should also load all the child
> mappings included. You should take care to use relative path to the
> child mappings and they can not be in different jars.
>
> Ralf
>
>
> sweex schrieb:
>> Hi!
>>
>> I have problems loading mapping files too. I have more than one mapping
>> placed on a source directory (xx.yy.zz.mapping). I've tried it like
>> Harjit
>> says, but it hasn't solved the problem.
>> What is my fault?
>>
>> Otherwise, I have a main mapping where another mappings are included
>> (href="person-mapping.xml"). The mapping files are in the same source
>> directory. Do I have to load the included mappings too?
>>
>> Thanks for the patience
>>
>> Regards,
>>
>>
>>
>> Barron, Ken (KCTP) wrote:
>>> Hi
>>> I'm new to castor and I must be doing something very silly, but I can't
>>> get
>>> my xml mapping file to load. I am using the latest version of castor,
>>> castor-1.1.2.1.jar
>>>
>>> I have placed the file castor_mapping.xml on the classpath of my webapp
>>> (directly under WEB-INF/classes where all my other .properties files and
>>> config files are being picked up successfully).
>>>
>>> I am using the instructions:
>>> Mapping mapping = XMLContext.createMapping();
>>> mapping.loadMapping("castor_mapping.xml");
>>>
>>> and I get the following FileNotfound exception:
>>> java.io.FileNotFoundException: castor_mapping.xml\castor_mapping.xml
>>> (The
>>> system cannot find the path specified)
>>>
>>> Notice how the filename is repeated twice?
>>>
>>> I tried variations on the load statement such as
>>> Mapping mapping = new Mapping();
>>> mapping.loadMapping("castor_mapping.xml");
>>>
>>> but they all give the same result.
>>>
>>> What am i doing wrong?
>>>
>>> Regards
>>> Ken
>>>
>>>
>>>
>>
>
> --
>
> Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
> Ralf Joachim
> Raiffeisenstraße 11
> 72127 Kusterdingen
> Germany
>
> Tel. +49 7071 3690 52
> Mobil: +49 173 9630135
> Fax +49 7071 3690 98
>
> Internet: www.syscon.eu
> E-Mail: [EMAIL PROTECTED]
>
> Sitz der Gesellschaft: D-72127 Kusterdingen
> Registereintrag: Amtsgericht Stuttgart, HRB 382295
> Geschäftsleitung: Jens Joachim, Ralf Joachim
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
View this message in context:
http://www.nabble.com/Problem-loading-xml-mapping-file-tf4056724.html#a11537376
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email