This one time, at band camp, [EMAIL PROTECTED] said:
>I try to create a mapping file.
>I'd like include in it, other mapping files which are in the same
>directory.
>
>i.e :
>2 files : c:/ProjetF1/mapping/mappingrapportfinal.xml and c:/ProjetF1
>/mapping/mappingrapportpreliminaires.xml
>
>mappingrapportfinal.xml :
>
><mapping>
> <class name="ccr.f1.i03.controleur.RapportFinal">
> <map-to xml="RapportFinal"/>
> <field name= "RapportPreliminaires" type
>= "ccr.f1.i02.controleur.RapportPreliminaires">
> <bind-xml name="RapportPreliminaires"/>
> </field>
> </class>
><include href="mappingrapportpreliminaires.xml"/>
></mapping>
>
>
>In my class :
>
>map.loadMapping(
> new InputSource(
>
>CCRRessourcesProvider.getRessource(Params.MAPPING_PATH +
>"mappingrapportfinal.xml")));
> h_unmarshaller.setMapping(map);
>
>Exception :
>Nested error: org.exolab.castor.mapping.MappingException: Nested error:
>org.xml.sax.SAXException: Parsing Error : File
>"file:///C:/ProjetF1/mappingrapportpreliminaires.xml" not found
>
>Unfortunately Castor does not search my included mapping file in the
>mapping directory (Params.MAPPING_PATH) but apparently the file seem's to
>be relative to the JRE's start.
Julien,
A path relative to the directory from which the JVM was started will
work. Change the <include> element to include a relative path to the
mappingrapportpreliminaires.xml descriptor.
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev