I have had luck with Tomcat and Xerces by putting an underscore in front of xerces.jar
(i.e., calling it _xerces.jar) and putting it into the $TOMCAT_HOME/lib directory with
the rest of the jar files. The shell script that generates the CLASSPATH puts them in
alphabetical order (as Chris McNeilly pointed out) and underscores come out before
letters. At least in Unix, I'm not sure about DOS.
> -----Original Message-----
> From: Sam Newman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 10:22 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Tomcat 3.2.2 and Xerces
>
>
> If it was an inbuilt limitation of Tomcat, I wouldn't expect to see a
> ClassDefNotFoundException....are you sure you've put your
> xerces parser .jar
> file in the WEB-INF/lib directory of your webapp?
> Also Mail Archive does have a search facility for this list.
> Its pretty crap
> but its better than nothing :-)
>
> sam
> ----- Original Message -----
> From: "Ben Rometsch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 19, 2001 3:08 PM
> Subject: Tomcat 3.2.2 and Xerces
>
>
> > Hi There,
> >
> > I'm new to the group - apologies if this has been asked 100
> times before.
> >
> > I'm writing a web application that parses an XML file with
> SAX in order to
> > retrieve database connection details. The beans responsible
> for this make
> > use of the xerces XML parser. Testing the beans in
> JBuilder, everything
> > works fine.
> >
> > When I compile the class files and attempt to invoke the
> methods through a
> > jsp page in Tomcat, it throws a
> java.lang.NoClassDefFoundError error.
> >
> > I've been scouring Deja and the tomcat documentation. It
> sounds like I
> can't
> > use another XML parser on top of the one tomcat uses to parse its
> > configuration information. Is this correct? If this is the
> case, is the
> only
> > solution to re-write the SAX parser bean to make use of JAXP?
> >
> > Thanks in advance,
> > Ben
> <snip>