9 Replies Latest reply on Jul 11, 2011 4:43 AM by Prasad Deshpande

    xerces class cast exception

    Prasad Deshpande Expert

      I'm getting ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to  org.apache.xerces.xni.parser.XMLParserConfiguration. I'm packaging xercesImpl.jar with my ear, also it is present as a module in as7 modules. I tried to remove one from my ear, that gave me no class definition found exception, that means xercesImpl.jar from modules is not visible to my ear directly, but then what could be the reason for this exception? I tried jboss-deployment-structure.xml in META-INF of ear

       

      <jboss-deployment-structure>

        <deployment>

          <exclusions>

              <module name="org.apache.xerces" />

          </exclusions>

        </deployment>

      </jboss-deployment-structure>

       

       

      Any quick guess?