Hm, I guess this is partly our fault because we obviously did not completely ensure binary compatibility between the 1.0 and 1.1 release (now we are more concerned about this: between 1.1 and 1.2 there should not be such issues).
I agree with Emmanuel's solution. In 1.1 HierarchicalXMLConfiguration is empty and just extends XMLConfiguration. It does not matter to which of the both you add the overloaded initProperties() method. Just delegate to the other variant and set the boolean argument to false (it is only needed for storing configuration files - which was not supported by HierarchicalXMLConfiguration). Because in 1.1 XMLConfiguration is a full replacement for HierarchicalXMLConfiguration I hope that there are no further issues. Oliver William Evans wrote: >Thanks, Emmanuel, I will try the quick workaround first. I have >contacted the vendor (CameronSystems) but don't hold much hope that they >correct anytime soon... > > >-----Original Message----- >From: Emmanuel Bourg [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 28, 2005 8:54 AM >To: Jakarta Commons Users List >Subject: Re: XMLConfiguration load problem - External Entity not found > >William Evans wrote: > > >>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!!! >> >> > >What is this package embedding Commons Configuration ? Is it widely used >? > > > >>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). >> >> > >The boolean parameter appeared in the version 1.1, that means this >package was built with the version 1.0. > > > >>Can you think of an easy way around this? Is there a way this class >> >> >can > > >>be made backwards compatible? >> >> > >As a quick workaround I suggest that you download the source of commons >configuration and add the missing method initProperties(Document) in >HierarchicalXMLConfiguration. Check if your application works with this >fix, there may be other issues. > >For the long term solution I would contact the author of this package >and request to upgrade the dependency on commons configuration. > >Emmanuel Bourg > >--------------------------------------------------------------------- >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]
