|
|
|||||||
|
I have a commons.jar file which has all the utilities to do a load of xml files. When an application uses the commons.jar file to lookup a xml file that exists in the war file path ( WEB-INF/classes/config/application-desc.xml ), it throws a not found exception. What the utility does is, AppXmlLoader.getInputStream( CallingClass.class, config/application-desc.xml ); public static InputStream getInputStream(Class clazz, String theFile) { InputStream stream = clazz.getResourceAsStream("/" + theFile); return stream; } The same problem happens for EJB's as they are in a different classLoader. Any Thoughts on how i can do it a different way. |