Jake,

Unfortunately they are packing the old Configuration classes in their
jar and then calling HierarchicalXMLConfiguration directly with a method
that no longer exists:

Caused by: java.lang.NoSuchMethodError:
org.apache.commons.configuration.HierarchicalXMLConfiguration.initProper
ties(Lorg/w3c/dom/Document;)V
        at
com.cameronsystems.fix.configuration.XMLDictionaryFactory.createDictiona
ries(XMLDictionaryFactory.java:99)


I don't see an easy way around this unless I provide a version of
HierarchicalXMLConfiguration with the old method signatures.

Bill


-----Original Message-----
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 28, 2005 8:41 AM
To: Jakarta Commons Users List
Subject: RE: XMLConfiguration load problem - External Entity not found


Put the new commons configuration jar first in the classpath or, if you 
don't have control of what goes first (such as when arbitrary jars are 
loaded from a lib directory, such as in WEB-INF/lib in a webapp), then
try 
renaming the newer commons configuration jar to come, alphabetically, 
first.  Finally, you might try simply opening the jar file in some Zip 
utility and deleting the offending packages (or extract and re-jar with 
only the packages you want).  They shouldn't be packing it up in their
own 
jar anyway unless they wrap the package up in their own package
namespace.

Jake

At 10:20 AM 12/28/2005 -0600, you wrote:
 >Oliver,
 >
 >I have finally found out what was causing me to pick up old classes -
a
 >vendor package I use, has an old version of Configuration package
 >embedded in it! What a pain!!!
 >
 >My code works great now but the vendor stuff doesn't because they are
 >calling org.apache.commons.configuration.HierarchicalXMLConfiguration
 >with the old initProperties method (without the boolean elemRefs
 >parameter).
 >
 >Can you think of an easy way around this? Is there a way this class
can
 >be made backwards compatible?
 >
 >Regards
 >Bill
 >
 >
 >
 >
 >-----Original Message-----
 >From: Oliver Heger [mailto:[EMAIL PROTECTED]
 >Sent: Wednesday, December 21, 2005 9:52 AM
 >To: Jakarta Commons Users List
 >Subject: Re: XMLConfiguration load problem - External Entity not found
 >
 >William Evans wrote:
 >
 >>Yes, I did check there. I even did a search for all occurences on my
 >>machine. I assure you that I have double-checked several times. I can
 >>only infer that the incompatibility is in the 1.2 jar itself. Are you
 >>certain this is not the case?
 >>
 >>Regards
 >>Bill
 >>
 >>
 >>
 >To be sure I downloaded the 1.2 jar again (both from ibiblio and from
 >the main download site) and even decompiled the affected classes. They
 >are correct.
 >
 >I have no more ideas what could cause you such a trouble. Perhaps you
 >can try building 1.2 from source (see
 >http://jakarta.apache.org/commons/configuration/building.html). I
wonder
 >if this will work.
 >
 >Oliver
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: [EMAIL PROTECTED]
 >For additional commands, e-mail: [EMAIL PROTECTED]
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: [EMAIL PROTECTED]
 >For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to