2 Replies Latest reply on Dec 22, 2014 10:51 PM by murali.ramco

    Classpath or Module path problem in wildfly 8.1

    murali.ramco

      I am getting the following error "file__redirected.__DocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory"

      only when I create my own classpath module.
      If I bundle all my third party and our own jars in my ear lib folder, its working fine. Only when i remove the jars from the lib folder and try to put it in the classpath using module xml

      I am getting this parser exception.

      I should not bundle all my third party jars in ear, it should be seperately mapped in classpath,
      so please help me to overcome from this issue.
      Thanks in advance.

       

      Please let me know if any additional information is required.

        • 1. Re: Classpath or Module path problem in wildfly 8.1
          dmlloyd

          This does look a lot like [WFLY-4174] Xalan Linkage error : TransformerConfigurationException - JBoss Issue Tracker which was already reported.  Are you by any chance running on Windows?

          • 2. Re: Classpath or Module path problem in wildfly 8.1
            murali.ramco

            Hi good day.
            Thanks for your reply.

            Yes its running on Windows8, currently I am doing POC to certify that our deliverables are working in wildfly 8.1, so that deliverables will be deployed in wildfly in Redhat when it goes for production.

            After removing the' -jaxpmodule "javax.xml.jaxp-provider" ^' also I am getting the same error.

            Even I have excluded those jars in my 'jboss-deployment-structure.xml'

             

            <jboss-deployment-structure>

            <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

                 <deployment>

                    <dependencies>

                        <module name="WEB" export="true"/>

                        <module name="EJB" export="true"/>

                   </dependencies>

                   <exclusions>           

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

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

                   </exclusions>

               </deployment>

            </jboss-deployment-structure>