oops........
InputStream i =
getClass().getClassLoader().getResourceAsStream("mapping.xml");
 --- Siddharth Chhabra <[EMAIL PROTECTED]>
wrote: 
> 
> hi
> I am a castor newbie but you might want to try this
> 
> Mapping m = new Mapping();
>               InputStream i =
>
getClass().getClassLoader().getResourceAsStream("s");
>               if(i==null)
>                       System.out.println("ClassLoader issues!")
>               m.loadMapping(new InputSource(i));
> 
> 
> If this does not work, there could be some class
> loader issues.
> Try experimenting with keeping the mapping at the
> top
> level instead of a jar and other variations.
> hope this helps.
> 
>  --- [EMAIL PROTECTED] wrote: 
> > HI,
> > 
> > I have an ear  files that contain some ejbs and
> war
> > and a jar files..
> > 
> > 
> > Structure of the ear is as follows
> > 
> > MyWar.war
> > APP-INF\lib\castor-0.9.5.3.jar
> > APP-INF\lib\log4j-1.2.8,jar
> > APP-INF\lib\xercesImpl.jar
> > APP-INF\lib\xmlParserAPIs.jar
> > Meta-Inf\Manifest.mf
> > Meta-Inf\application.xml
> > BusinessInvokerEJB.jar
> > DataAccessEJB.jar
> > MyEJB.jar
> > common.jar  -    this is not an EJB...
> > 
> > 
> > Currently I have kept castor mapping xmls at 
> domain
> > folder of server. Now 
> > I want to package these castor mapping xmls in my
> > ear. But wherever I keep 
> > these files...these files are not getting
> loaded..in
> > my code I am 
> > referring files as follows from common.jar
> > 
> > 
> > castor mapping file in common.jar
> > 
> > Mapping map = new
> > Mapping(getClass().getClassLoader());
> > map.loadMapping("MyMapping.xml");
> > 
> > 
> > 
> > Any idea how to package these Mapping XMLs in my
> ear
> > file.
> > 
> > Govind>
>
-----------------------------------------------------------
> > 
> > If you wish to unsubscribe from this mailing, send
> > mail to
> > [EMAIL PROTECTED] with a subject of:
> >         unsubscribe castor-user
> >  
> 
>
________________________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping" 
> your friends today! Download Messenger Now 
> http://uk.messenger.yahoo.com/download/index.html
> 
> 
> 
>
-----------------------------------------------------------
> 
> If you wish to unsubscribe from this mailing, send
> mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-user
>  

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to