1 Reply Latest reply on Feb 19, 2015 10:44 AM by Murali Krishna G

    java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

    Murali Krishna G Newbie

      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.