Thanks Jacky!
This is how it works in case anyone else needed to use loadMapping
map.loadMapping (
getClass().getClassLoader().getResource("com/x/y/z/UserMapping.xml"));
-----Original Message-----
From: Jacky Lu [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 3:17 PM
To: [email protected]
Subject: RE: [castor-user] loadMapping does not fine the mapping file
The getResource() method in Class might be what you want.
--Jacky
> -----Original Message-----
> From: Ali Emami [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 09, 2005 3:10 PM
> To: [email protected]; Bruce Snyder
> Subject: [castor-user] loadMapping does not fine the mapping file
>
>
> Hi All
> I'm trying to mashal a java object using a map file, My mapfile is
> UserMapping.xml and its in a X.jar and the jar file is in
> WEB-INF\classes\com\x\y\z\UserMapping.xml
> But
> Every time I use
> map.loadMapping("com/fwp/snap/user/UserMapping.xml");
> or
> map.loadMapping("UserMapping.xml");
>
> I get FileNotFoundException!!!
>
> Can you help me with this? THANKS A LOT
>
>
>
> -------------------------------------------------
> If you wish to unsubscribe from this list, please send an empty
> message to the following address:
>
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>
-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message
to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------