Hi all,
I am trying to load castor map file using loadMapping as follows:
File mapFileName = new File(configDir, "castor_map.xml");
String mapFile = mapFileName.getAbsolutePath();
Mapping customMapping;
customMapping = new Mapping();
try
{
customMapping.loadMapping (mapFile);
…….
}
The mapFile contains full path name of “d:\p4client\ctsa_home\ctsa\weblogic\tango-license\conf\castor_map.xml”
When using Castor 9.4.1 – everything worked fine.
Now – when I use Castor 9.5.4 the following exception is raised:
“
java.io.FileNotFoundException: d:\p4client\ctsa_home\ctsa\weblogic\tango-license\conf\d:\p4client\ctsa_home\ctsa\weblogic\tango-license\conf\castor_map.xml (The filename, directory name, or volume label syntax is incorrect)”
I’ve tried to remove the path name and to add it to the classpath, to use the following constructor:
New Mapping (getClass().getClassLoader());
But nothing helped.
Can you help?
Regards,
Avi Wiesenfeld

