**DONOTDELETE**
(Unregistered)
08/13/03 12:07 PM
ClassPath conflict

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.



Contact us JavaWorld

Powered by UBB.threads™ 6.5.5

Featured White Papers


RESEARCH CENTERS: Java Standard Edition | Java Enterprise Edition | Java Micro Edition | Development Tools
About Us | Advertise | Contact Us | Terms of Service/Privacy
Copyright, 2006-2008 Network World, Inc. All rights reserved.