3 Replies Latest reply on May 2, 2013 9:45 AM by asoldano

    JBoss 7.2 class loading issues

    crumbs

      I deployed a war file in Jboss 7.2 that was working perfectly fine in JBoss 7.1.1 and JBoss 7.1.3.

      I am seeing this ClassCastException:

       

      ClassCastException: org.apache.cxf.jaxws.JaxWsClientProxy cannot be cast to org.apache.cxf.frontend

       

      This did not happen with the same war file in 7.1.1 and 7.1.3.

       

      Does something need to be configured in JBoss 7.2 regarding class loading?

       

      Thanks,

      Indira

        • 1. Re: JBoss 7.2 class loading issues
          asoldano

          mmh... definitely a classloading issue; can you share more info on the packaging of your app? Are you perhaps embedding any cxf jars in the war? What's the full stacktrace?

          • 2. Re: JBoss 7.2 class loading issues
            crumbs

            Alessio,

             

            I found that org.apache.cxf now has main, and impl folders.  The impl was was not referenced in any of the module.xml files.

            When  I added the impl folder to the jboss-deployment-structure, everything worked.

             

            Eventually, I removed all references to cxf, and just used the jbossws-cxf layer, and with 7.2, all is well, except, as  posted in another SAML related issue, my SAML assertion is not being signed.

             

            Thanks so much, again.  Good to know your support is available.

             

            -Indira

            • 3. Re: JBoss 7.2 class loading issues
              asoldano

              OK, very good, that explains it.