Hariharan Ramakrishnan wrote:
>
> Hi All,
>
> The loadMapping() function gives the following error.
>
> Exception: org.exolab.castor.mapping.MappingException: Nested error:
> java.net.NoRouteToHostException: Operation timed out: no further
> information
>
> The code fragment is:
>
> Mapping mapping = new Mapping(getClass().getClassLoader());
> mapping.loadMapping("mapping.xml");
>
Hariharan,
I'm not sure why this exception is being thrown. I've always used some
variation of loadMapping( getClass().getResource( mappingFile ) ) which
returns a java.net.URL.
--
+------------------------------+
| Bruce Snyder |
| [EMAIL PROTECTED] |
+------------------------------+
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev