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/02/02 12:20:43 UTC

[REPOST] Using Xerces in my Application

I posted this about a week ago with no luck. Anybody care to comment?

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