Hi Werner,
On a side note regarding upgrade, we are still using 0.9.3 and have
tried several times to upgrade but stopped short. I hope in the upcoming
1.0 release, castor can fix some of the bugs that broke previously
working functionality such as bug 1267.
regards
Bill
Werner Guttmann wrote:
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)”
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
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------