Paul Hammant wrote:
> 
> Background :
> ============
> 
> I'm porting Batik to Jesktop.  It's 99% finshed and quite a whopper of an 
> application.
> 
> Problem :
> =========
> 
> Included in Batik is org.xml.sax classes.  The factory tries to dynamically 
> load a parser.  Batik
> wants crimson (crimson-parser.jar).  Avalon already has org.xml.sax in 
> classpath, so classloader
> uses the factory from the one with Avalon, not the classes loaded by a 
> different (leaf)
> classloader for Batik in Jesktop in Avalon.  Of course that's right 
> (security), but wrong becase
> the top level, Avalon, classloader knows nothing of the leaf classloader and 
> it's clearly visible
> crimson jar.
> 
> Solution #1
> ===========
> 
> Talk to the poeple at www.xml.org and get them to add a classloader param to 
> the
> XMLReaderFactory.createXMLReader() method.  Same trick as used for Repository 
> (talked of recently)
> 
> Solution #2
> ===========
> 
> Delete org.xml from my fork of Batik, place crimson-parser in pheonix's libs 
> directory.

Keep in mind that Xerces has some bug fixes with AttributesImpl, so that
version of the
SAX library is more robust.

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

Reply via email to