Hi,
I had similiar problems with loading JDO config files. What I did in the end
was to first create a file pointing to the resource then call toURL on it.
That seemed to fix the problem. I thought it very strange too.
that is:
jdo.loadConfiguration( ( new File( pathname ) ).toURL() )
Bert.
----- Original Message -----
From: "B�rries Ludwig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 10:16 AM
Subject: [castor-dev] pathes
> Hi,
>
> I read a similar question before, but I could not find it any more.
>
> The problem is:
>
> I set an absolute path name to jdo:
>
> jdo.setConfiguration("C:/Programme/Apache Tomcat
> 4.0/webapps/ANT/infonetIniFiles/InfoNet.xml");
>
> ^^^^^^^^^^^^^^^
> The method
>
> jdo.getDatabase();
>
> throws the exception: Uncaught exception in evaluation:
> org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
> org.xml.sax.SAXParseException: File "file:///C:/Programme/Apache Tomcat
> 4.0/webapps/ANT/ InfoNet_Mapping.xml" not found.
>
> ^
>
> So the subdirectory "infonetIniFiles" is not longer used !!!
> InfoNet_Mapping.xml is in the same directory as InfoNet.xml.
>
> I canNOT use the feature with the classloader, I need absolute path names.
>
> Any suggestions ?
>
> Best Regards
>
> Boerries
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev