This content has been marked as final. Show 3 replies
I have some XML files that are packaged in a EAR file and deployed to Websphere AppServer.
I have to find the location of these files ( relative to Webspere classes dir ) and Parse through these files.
The below code is not finding xml files (returning NULL ) and throwing Exception.
String xmlFile = "XMLDir/test.xml";
InputStream input = this.getClass().getResourceAsStream(xmlFile);
How can I find these xml files, so that I can parse through these files.