late hour org.apache.xerces.parsers.SAXParser issue

18 views
Skip to first unread message

mohamed

unread,
Mar 20, 2012, 1:08:32 PM3/20/12
to cs639_s12
Hi all,

Every is working on my home environment. When I deployed to sf08 I get
this exception for test4a.
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser

This xerces jar files are both in the project WebContent/WEB-INF/lib
as well as in my CLASSPATH

Here is my CLASSPATH in sf08

.:/home/kaahinm/bin/xercesImpl.jar:/home/kaahinm/bin/xml-apis.jar:

am I using the wrong jar files? I have a feeling I am missing some
path issue mentioned at class but can't figure out.
Please assist.

Thank you
Mohamed

Betty O'Neil

unread,
Mar 20, 2012, 1:31:48 PM3/20/12
to cs639_s12
Mohamed--
THis is not a JDK class, and we are trying to stick to using the
JDK for our parsers. Your client code should look be modeled
on Example 5.3, say, except that createXMLReader should be
no-args:
XMLReader parser = XMLReaderFactory();

mohamed

unread,
Mar 20, 2012, 1:46:24 PM3/20/12
to cs639_s12
Got it. Thank you.
Reply all
Reply to author
Forward
0 new messages