Title: loadMapping does not work in Castor 9.5.4
Hi Avi,
 
Why not upgrade to any of the more recent version, such as 0.9.8 or 0.9.9 ? As far as I remember, there's problem with resource loading in 0.9.5.4 that have been fixed in later releases.
 
Regards
Werner


From: Wiesenfeld, Avi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 4:47 PM
To: [email protected]
Subject: [castor-user] loadMapping does not work in Castor 9.5.4

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)

Ive 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

Reply via email to