Hi all;

*What we do*

We try to read a file from a local file system. Our code is like;

 *InputStream in =
Thread.currentThread().getContextClassLoader().getResourceAsStream(FilePath);*

Here 'FilePath' is an absolute path of the file

*Issue*

Above code works fine in linux and in windows when we run the server in
normal mode.
But this is NOT working, when we run the server as a windows service.We get
input stream as 'null'.

Anyone encountered such issue before? I could not find any information
regarding this other than  java classloaders . Here we use
"ContextClassLoader", which is the right classloader to be used..

Any clue on this?

Thanks.


-- 
-Ratha
mobile: (+94)755906608
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to