I am working with Digester inside an Application Server (Oracle iAS), and I had some problems because the method DigesterRuleParser.IncludeRule.includeXMLRules, uses the ClassLoader for the class DigesterRuleParser, not the ClassLoader in use for the current thread (as this is a container, is not the same ClassLoader for the system jars and the application jars). So, I just replace the line 368 of the file DigesterRuleParser.java: URL fileURL = DigesterRuleParser.this.getClass().getClassLoader().getResource(fileName);
with the line:
URL fileURL = Thread.currentThread().getContextClassLoader().getResource(fileName);
I think this can be useful, and my tests works fine,
maybe somebody wants to add this code to the
repository
Good catch! I just applied a slight tweak to this patch (if there is no thread context class loader, fall back to the class loader that loaded this class) because not all Digester users are running in a container that supports the thread context class loader. Fixed in nightly build 20031001.
Thanks for the patch.
Craig
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
