Rather than hacking dom4j you can just pass in the particular SAX XMLReader
you want to use.

e.g.

XMLReader parser = new org.apache.xerces.parsers.SAXParser();

// then use with dom4j
SAXReader reader = new SAXReader( parser );
Document doc = reader.read( "foo.xml" );


This problem does sound like a resin classloader bug; you should be able to
specify exactly what XML parser you want to use in each web app you deploy -
the servlet engines own parser shouldn't get in the way.

James
-------
http://radio.weblogs.com/0112098/
----- Original Message -----
From: "Kelvin Tan" <[EMAIL PROTECTED]>
To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 10:28 AM
Subject: Re: cvs commit:
jakarta-commons-sandbox/configuration/src/java/org/apache/commons/configurat
ion XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java


Not really. Its an awful hack!
In SAXHelper.createXMLReader, I comment out
XMLReader reader = createXMLReaderViaJAXP( validating, true );

and hardcode

System.setProperty("org.xml.sax.driver",
"org.apache.xerces.parsers.SAXParser");

to avoid using Rein's SAX driver.

Kelvin

On Tue, 14 Jan 2003 10:19:35 -0000, James Strachan said:
>Wanna send me the patch & I'll apply it?
>
>James -------
>http://radio.weblogs.com/0112098/ ----- Original Message -----
>From: "Kelvin Tan" <[EMAIL PROTECTED]> To: "Jakarta Commons
>Developers List" <commons-
>[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 9:03 AM
>Subject: Re: cvs commit: jakarta-commons-
>sandbox/configuration/src/java/org/apache/commons/configurat ion
>XMLConfiguration.java DOM4JConfiguration.java XmlConfiguration.java
>
>
>One thing people should know about dom4j and Resin: they don't like
>each other very much. :-)
>
>I've patched dom4j to work with Resin. Its an awful workaround, but
>it works. Contact me if anyone needs the patch.
>
>Kelvin
>
>
>--
>To unsubscribe, e-mail: <mailto:commons-dev-
>[EMAIL PROTECTED]> For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>__________________________________________________ Do You Yahoo!?
>Everything you'll ever need on one web page from News and Sport to
>Email and Music Charts http://uk.my.yahoo.com
>
>--
>To unsubscribe, e-mail:   <mailto:commons-dev-
>[EMAIL PROTECTED]> For additional commands, e-mail:
><mailto:commons-dev-
>[EMAIL PROTECTED]>




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

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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


Reply via email to