Hi,

I am facing the following class cast exception. I have xerces.jar and xercesImpl.jar at my application lib folder..

Java.lang.ExceptionInInitializerError
at org.apache.axis.configuration.FileProvider.configu reEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:17 2)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java: 156)
at org.apache.axis.client.AxisClient.<init>(AxisClien t.java:52)
at org.apache.axis.client.Service.getAxisClient(Servi ce.java:103)
at org.apache.axis.client.Service.<init>(Service.java :112)
at at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnM essage.run(MDBWrapper.java:208)
at com.ibm.ws.security.util.AccessController.doPrivil eged(AccessController.java(Compiled Code))
at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage( MDBWrapper.java:197)
at com.ibm.ejs.jms.listener.MDBWrapper.onMessage(MDBW rapper.java:175)
at com.ibm.mq.jms.MQSession.run(MQSession.java:1561)
at com.ibm.ejs.jms.JMSSessionHandle.run(JMSSessionHan dle.java:924)
at com.ibm.ejs.jms.listener.ServerSession.connectionC onsumerOnMessage(ServerSession.java:740)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(S erverSession.java:525)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(Se rverSession.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compil ed Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.d ispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrap per.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrap per.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerS ession.java:373)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava:912)
Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl
at javax.xml.parsers.SAXParserFactory.newInstance(Unk nown Source)
at org.apache.axis.utils.XMLUtils.initSAXFactory(XMLU tils.java:209)
at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.j ava:110)

Please let me know how to solve this issue?

Thanks,
Ranjith