I am trying to instantiate a SAX parser with the following code in a JSP:

// Instantiate a parser
XMLReader parser 
=  XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");

However, each time I do I receive the following exception:

500 Internal Server Error

java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

at 
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:118)

at /report/index.ibs._jspService(/report/index.ibs.java:95) (JSP page line 45)

at com.orionserver[Orion/1.5.2 (build 
10460)].http.OrionHttpJspPage.service(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)

at com.evermind[Orion/1.5.2 (build 
10460)].server.http.JSPServlet.service(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)

at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)

I have imported the proper packages and installed xerces.jar in the lib 
directory of WEB-INF, however, I am unable to get this to work.  For the 
record, in a standalone java app, the instantiation of a parser works 
beautifully.

Any help you can offer is appreciated.

-dhs


Reply via email to