On Wed, 26 Sep 2001, Andy Nuss wrote: > Date: Wed, 26 Sep 2001 17:51:19 -0700 > From: Andy Nuss <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: where do I find SAX w/ tomcat? > > Hi, > > I installed Tomcat 4.0 from the self-extracting binary on the Jakarta site. > I noticed that I only have > the following jars: > > bootstrap.jar > jasper-runtime.jar > naming-factory.jar > > (There is no parser.jar anywhere.) > > Assuming that I would have an XML parser, I used the function > org.xml.sax.helpers.ParserFactory.makeParser() > and got an exception as follows: > > java.lang.NullPointerException: No value for sax.parser property > at > org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:90) > > What am I missing? >
You have an XML parser (in the common/lib directory), but you should really be using JAXP APIs to talk to it -- that way, the actual parser being used can be changed without you having to recode your application. See the JAXP/1.1 specification, available via: http://java.sun.com/xml > Thx, > Andy > > Craig
