You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kevin Jones <ke...@develop.com> on 2001/01/28 21:38:49 UTC

FW: Using Xerces in my Application

Sorry about the cross-post. I posted this is user and I meant to post it
here. Could you guys post any replies here please?

Thanks

Kevin Jones
DevelopMentor
www.develop.com

> -----Original Message-----
> From: Kevin Jones [mailto:kevinj@develop.com]
> Sent: 27 January 2001 08:25
> To: Tomcat-User
> Subject: Using Xerces in my Application
>
>
> I'm trying to use Xerces in my web application. To do this I put
> the jar file into WEB-INF/lib. However whenever I try and parse
> any XML I get a 'sealing' exception. I've just read the recent
> thread on this and it implies that I can only have one XML parser
> within Tomcat, or at least that if the class names clash (which
> they will) things may not work as expected.
>
> Can I use Xerces either alongside Crimson? If so, where do I put
> it. It doesn't work in WEB-INF/lib and only works in tomcat/lib
> as a replacement for crimson.
>
> Reading the sealing discussion I get the impression that using
> Xerces should be OK as long as the class loader doesn't try and
> use two classes with the same name from different jars, (or am I
> way off the mark here?). So shouldn't xerces become the 'default'
> XML parser for my application?
>
> What if I want to use a different parser (such as Oracle's) will
> it work (I haven't tried this BTW)?
>
> Kevin Jones
> DevelopMentor
> www.develop.com