0 Replies Latest reply on Nov 12, 2017 5:17 AM by Sanjay Jain

    java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to org.codehaus.stax2.XMLInputFactory2

    Sanjay Jain Newbie

      I am migration Java Web Appliation from jboss 6.0 to wildfly 11. I am getting "java.lang.ClassCastException: __redirected.__XMLInputFactory cannot be cast to org.codehaus.stax2.XMLInputFactory2" while running the code on wildfly 11.0.0.Final. Junit tests are working without error.

       

      I am using following woodstox dependencies.

       

      <dependency>

         <groupId>org.codehaus.woodstox</groupId>

         <artifactId>woodstox-core-asl</artifactId>

         <version>4.4.1</version>

      </dependency>

       

      <dependency>

         <groupId>org.codehaus.woodstox</groupId>

         <artifactId>stax2-api</artifactId>

         <version>3.1.4</version>

      </dependency>

       

      Appreciate any help to resolve this issue..

       

      Thanks

      Sanjay