Bill, As already mentioned several times in the last few days, I am committer (and technical lead, to be more precise) for Castor JDO. Whilst I try to help with castor XML wherever I can, unfortunately this is not my main area of expertise. In other words, I will have to defer a reply to your particular question to somebody who knows better than me .. ;-)
Werner wg> -----Original Message----- wg> From: Bill Leng [mailto:[EMAIL PROTECTED] wg> Sent: Wednesday, December 21, 2005 5:43 PM wg> To: [email protected] wg> Subject: Re: [castor-user] loadMapping does not work in Castor 9.5.4 wg> wg> Hi Werner, wg> wg> On a side note regarding upgrade, we are still using 0.9.3 wg> and have tried several times to upgrade but stopped short. wg> I hope in the upcoming 1.0 release, castor can fix some of wg> the bugs that broke previously working functionality such wg> as bug 1267. wg> wg> regards wg> wg> Bill wg> wg> Werner Guttmann wrote: wg> > Hi Avi, wg> > wg> > Why not upgrade to any of the more recent version, such wg> as 0.9.8 or wg> > 0.9.9 ? As far as I remember, there's problem with wg> resource loading in wg> > 0.9.5.4 that have been fixed in later releases. wg> > wg> > Regards wg> > Werner wg> > wg> > wg> ------------------------------------------------------------ wg> ------------ wg> > *From:* Wiesenfeld, Avi [mailto:[EMAIL PROTECTED] wg> > *Sent:* Wednesday, December 21, 2005 4:47 PM wg> > *To:* [email protected] wg> > *Subject:* [castor-user] loadMapping does not work in wg> Castor 9.5.4 wg> > wg> > Hi all, wg> > wg> > I am trying to load castor map file using loadMapping wg> as follows: wg> > wg> > File mapFileName = new File(configDir, wg> "castor_map.xml"); wg> > wg> > String mapFile = mapFileName.getAbsolutePath(); wg> > wg> > Mapping customMapping; wg> > wg> > customMapping = new Mapping(); wg> > wg> > try wg> > wg> > { wg> > wg> > customMapping.loadMapping (mapFile); wg> > wg> > ....... wg> > wg> > } wg> > wg> > The mapFile contains full path name of wg> > wg> "d:\p4client\ctsa_home\ctsa\weblogic\tango-license\conf\cast wg> or_map.xml" wg> > wg> > When using Castor 9.4.1 - everything worked fine. wg> > wg> > Now - when I use Castor 9.5.4 the following exception wg> is raised: wg> > wg> > " wg> > wg> > java.io.FileNotFoundException: wg> > wg> d:\p4client\ctsa_home\ctsa\weblogic\tango-license\conf\d:\p4 wg> client\ctsa_home\ctsa\weblogic\tango-license\conf\castor_map.xml wg> > (The filename, directory name, or volume label syntax wg> is incorrect)" wg> > wg> > I've tried to remove the path name and to add it to wg> the classpath, wg> > to use the following constructor: wg> > wg> > New Mapping (getClass().getClassLoader()); wg> > wg> > But nothing helped. wg> > wg> > Can you help? wg> > wg> > Regards, wg> > wg> > Avi Wiesenfeld wg> > wg> wg> ------------------------------------------------- wg> If you wish to unsubscribe from this list, please send an wg> empty message to the following address: wg> wg> [EMAIL PROTECTED] wg> ------------------------------------------------- wg> wg> ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

