Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958382

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.

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* ClassPath conflict Anonymous 08/13/03 12:07 PM
. * * how salve this error    09/03/07 02:53 AM
. * * Re: ClassPath conflict vlad_roubtsov   08/14/03 07:45 PM

Extra information
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: 15967

Rate this thread

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5