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

Reply via email to