Hi All,

Yes, tomcat does not depend on jaxp.jar. But after a while I have found out
that it is "parser.jar" that is the culprit.
It needs parser.jar and does not load properly if it is removed.
So when both parser.jar and xerces.jar are there in the lib directory,
tomcat includes parser.jar before xerces.jar in the
classpath.
While my code tries to parse using XMLReader class in xerces as follows :-
XMLReader parser =
(XMLReader)Class.forName(fstrSAXParserName).newInstance();
parser.parse("myfile.xml");

It gives the following exception :
java.lang.NoSuchMethodError
        at
org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1131)
        at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XML

Validator.java:1214)entAndAttributes(XMLValidator.java:2551)..........
        .................................

I guess I am left with no option but to rename xerces.jar to a_xerces.jar. I
even tried downloading the latest version of servlet.jar and j2ee.jar. But
no luck :-((
Guess this one's going to be a tough thing to explain to the client while
installation :-))

Thanks
Seema

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to