Hi Javier
pls have a look at
http://www.wso2.net/kb/98
and use getResourceAsStream("config/special_properties.des");
Javier V wrote:
> Hi.
>
> I know my question has been posted several times, but the solution
> does not work. I must do something wrong, sure.
>
> I'm using JDK 1.4.2_12, Axi2 1.0 and Tomcat 4.1.31.
>
> The aar-achive contains:
>
> aar
> |-com
> |-test
> |-myService.class
> |-config
> |-special_properties.des
> |-lib
> |-myPackage.jar
>
> I want a access the resource "special_properties.des" (a properties
> file) inside my ServiceImpl class (com.test.myService) but none of
> both works:
>
> getClass().getClassLoader().getResourceAsStream("special_properties.des");
>
>
> getClass().getClassLoader().getResourceAsStream("/config/special_properties.des");
>
>
> Both returns null.
>
> What's wrong?
>
> Regards
>
> Janfry
>
> _________________________________________________________________
> Descubre la descarga digital con MSN Music. Más de un millón de
> canciones. http://music.msn.es/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Thanks,
Deepal
................................................................
~Future is Open~
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]