On Tue, 08 Apr 2008 14:58:06 -0400, Elizabeth Clause wrote:

> I just updated my Xerces jar, and this code, which worked
> xercesImpl-2.6.2.jar, broke when I updated to xercesImpl-2.8.1.jar. I also
> tried updating to xercesImpl-2.9.0.jar, and got the same error. Here is
> the stack trace:
> Caught: java.lang.IncompatibleClassChangeError: Class
> org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy does not
> implement the requested interface org.xml.sax.Attributes
>         at NewSaxParserText.run(NewSaxParserText.groovy:6) at
>         NewSaxParserText.main(NewSaxParserText.groovy)

What happens here is most likely not what you think happens, and it is
also not _directly_ the fault of the updated jars. Look here:
http://xerces.apache.org/xerces2-j/faq-general.html#faq-4

So unless you either a) install an updated xerces via the endorsed
mechanism OR b) explicitly pass the SAX/DOMFactory properties, _it won't
work_. It only _seems_ to work with xerces 2.6.2 since that version is more or
less the same as what's in the JDK; under the hood "the wrong thing" still
happens, sort of.

hth
Holger



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

Reply via email to