1 Reply Latest reply on Feb 1, 2017 11:40 PM by Anup Dey

    How to update latest cxf 3.0.6 in JBoss 6.4.7. modules

    Ravi Chirra Newbie

      Can some one explain the steps to remove existing .jar files and update with new .jar files.  I am trying to achieve the ws-security using WSS4j2.0.6

      I have performed the following steps:

       

      1. Downloaded cxf 3.0.6 and placed in modules folder.

          - palced the "cxf-core-3.0.6.jar" in following folders and updated the module.xml

                  C:\jboss-eap-6.4.7\modules\system\layers\base\org\apache\cxf\main\

                  C:\jboss-eap-6.4.7\modules\system\layers\base\.overlays\layer-base-jboss-eap-6.4.7.CP\org\apache\cxf\main

       

           - Placed rest of the "cxf.jar" files under the following IMPL folder and changed the module.xml

                 C:\jboss-eap-6.4.7\modules\system\layers\base\org\apache\cxf\impl\main

                C:\jboss-eap-6.4.7\modules\system\layers\base\.overlays\layer-base-jboss-eap-6.4.7.CP\org\apache\cxf\impl\main

       

      Getting the following error while starting the JBoss:

      16:45:11,940 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.ws.config: org.jboss.msc.service.StartException in service jboss.ws.config: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1936) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

      Caused by: java.lang.NoSuchMethodError: org.apache.ws.security.WSSConfig.init()V

       

      I have included the WSS4J2.1.jar which contains the WSSConfig.  But still it gives an error.  Hope there are some steps need to following to update the JBOSS module folder.

       

      Could some one send me the steps to update the jboss module folder.

       

      Thanks

      Ravi