With Tomcat 3.2.x, XML parsers are a special case. Tomcat 3.2.x includes one (jaxp.jar with parser.jar, or crimson.jar if 3.2.4) in TOMCAT_HOME/lib. This XML parser will override the one you place in WEB-INF/lib, which is the source of your error.
The typical solution is to remove jaxp.jar and parser.jar from TOMCAT_HOME/lib and add xerces.jar in their place. Both Tomcat 3.3 and 4.x have dealt with this issue and allow web applications to use the XML parser of their choice while the server uses its own indepedent XML parser. Cheers, Larry > -----Original Message----- > From: Scott Weaver [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20, 2001 3:03 PM > To: [EMAIL PROTECTED] > Subject: RE: xml conflict > > > Thanks for the response. > > I'm not sure if this is the appropriate solution to this > problem, but I > added the xerces.jar to the tomcat/lib directory and put it > in my classpath > to start tomcat. > Now the servlet works. > You say "make others available as needed." How do I do that? > I thought by putting the jars that my servlet needs in the web-inf/lib > diretory that that was making it available where needed. > ???? > Thanks, > Scott > > > -----Original Message----- > From: Pae Choi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 20, 2001 11:26 AM > To: Tomcat Users List; [EMAIL PROTECTED] > Subject: Re: xml conflict > > > It is a well known problem when you are using multiple XML parsers. > For example, COCOON, SOAP, TC, et al. You just have to know which > parser you need to keep it as a common parser and make others > available as needed. > > Check your environment sysmbols to see what are the parsers are > running and in what order. See also what other parsers are added to > the environment when the applications are invoked. > > Hoep this helps, > > > Pae > > > > ----- Original Message ----- > From: "Scott Weaver" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Thursday, December 20, 2001 8:10 AM > Subject: xml conflict > > > > I'm working with TC 3.2.4 > > > > I've encountered this error: SAX2 driver class > > org.apache.xerces.parsers.SAXParser not found when I run a > servlet that > uses > > the xerces package. > > > > Now the xerces.jar is in the lib web-inf/lib for this > servlet. This is a > 3rd > > party servlet that is in a jar also in the web-inf/lib > folder. Where is > the > > conflict and how do I get around this? > > > > Thanks, > > Scott > > > > > > -- > > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > > For additional commands: > <mailto:[EMAIL PROTECTED]> > > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
