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
>
>
>
--
View this message in context:
http://www.nabble.com/Problem-loading-xml-mapping-file-tf4056724.html#a11535777
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email