Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.
Anonymous
Unregistered
|
ClassPath conflict
08/13/03 12:07 PM
|
|
|
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.
|
|
0 registered and 2 anonymous users are browsing this forum.
Moderator:
|
Forum Permissions
You cannot start new topics
You cannot reply to topics
HTML is disabled
UBBCode is enabled
|
Rating:
Thread views: 15914
|
|
|
|
|
|
Powered by UBB.threads™ 6.5.5