I am facing & getting ClassCastException.
java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory
at javax.xml.stream.XMLInputFactory.newInstance(Unknown Source)
JBoss 6.3 and JDK 1.7 and Windows 7
This issue seems because of class loader. After analysis XMLInputFactory is trying to use com.sun.xml.internal.stream.XMLInputFactoryImpl.
Any suggestions please.
My issue got resolved there is a conflict with other library xml-apis-1.4.01.jar reference .
This library has other references & implementations for javax.xml.stream.XMLInputFactory.
Working fine after removal of reference xml api reference.
Retrieving data ...