I am able to get the InputStream for a properies file as InputStream stream1 = getClass().getClassLoader().getResourceAsStream("commons-logging.properties"); However, when i am trying to get a inputstream for a xml file, I am getting null value. I am not able to locate the xml file. Both files are present under same directory. InputStream stream2 = getClass().getClassLoader().getResourceAsStream("ejbLocator.xml"); Is there any clue? or I could ...