Please see the issue in detail at http://stackoverflow.com/questions/30469714/wso2-classpath-what-is-it-and-where-is-it
The basic problem is that instead of looking into
The file to open is being looked in
For example: I want WSO2 to open Holidays.xml using getClass().getResourceAsStream(). So I provide Holidays.xml as follows:
Then WSO2 throws FileNotFoundException
If I provided the file as follows:
Everything works fine.