​Solved it. Had to remove the .getClassLoader() :)​

On Fri, Oct 31, 2014 at 1:23 PM, Chan <[email protected]> wrote:

> Hi guys,
> I want access a properties file packed inside an AAR service
> (HelloService/resources/client.properties). I have tried below -
>
> InputStream stream =
> Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH);
>
> The steam comes out as null. I doubled checked the path but it's correct.
> I also saw this mail thread [1]. It doesn't have a conclusion for the
> problem.
>
> [1] -
> http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%[email protected]%3E
>
> Cheers~
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Mobileware
>  * ~Email       [email protected] <[email protected]>*
> *  ~Mobile     +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me <http://dulitha.me>*
> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>   *~Github     @dulichan <https://github.com/dulichan>*
>   *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
>



-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Mobileware
 * ~Email       [email protected] <[email protected]>*
*  ~Mobile     +94712112165*
*  ~Website   dulitha.me <http://dulitha.me>*
*  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
  *~Github     @dulichan <https://github.com/dulichan>*
  *~SO     @chan <http://stackoverflow.com/users/813471/chan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to