tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: [BUG] Tomcat incompatible with Xerces parser
Date Tue, 03 Oct 2000 17:48:07 GMT
Marc.McDonald@Design-Intelligence.com wrote:

> Reported as bug 191.
>
> Tomcat defines the org.w3c.dom.Document interface which is missing at least
> one method that is in the current DOM. This interface is used rather than
> the one in Xerces.jar. The result is a 'No Method' exception while running
> under Tomcat.
>
> The method concerned is importNode, though there may be others.
>
> I found this in an application using Xerces that I just extended to modify
> and import into the DOM tree.
>
> I can think of 2 possible solutions:
> 1. Change the xml.jar/parser.jar to not use org.w3c.dom path
> 2. Change tomcat to use Xerces by changing the classes in tomcat.util.xml
>
> I can't do the first since the source download didn't appear to include the
> jars. The second is turning out to be a bit messy due to use of a number of
> deprecated classes and instances. The first would be a better fix since any
> further Xerces changes would not cause the problem to pop up again.
>

Fixing Tomcat 3.1 to support Xerces is not a very practical approach.  A
solution that is much more helpful is to switch to Tomcat 3.2, which uses any
JAXP-based parser, including recent versions of Xerces.

>
> Thx,
> Marc McDonald
> Design Intelligence
>

Craig McClanahan

====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
                                    Applications to Tomcat



Mime
View raw message