Hi,
java.lang.ExceptionInInitializerError: java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.axis.utils.XMLUtils.initSAXFactory(XMLUtils.java:212)
at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:113)
Frequently I'm getting this error when i try to run my XML application(Reading XML using DOM and give back result in
string).
I'm using ServletExec with IIS 5.0. In my webapps lib folder i have latest version of xerces.jar, in the lib directroy of my ServletExec
i have crimson and jaxp jars.
Is that the reason ??
Please note that i can't delete crimson and jaxp jars.
These are the imports i use in my
java file.
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.xml.sax.SAXException;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.NodeList;
import org.w3c.dom.Element;
Please help me to solve this problem.