Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3832

Different default Spring descriptor name for creating client and server Bus instances

      When Spring integration is enabled, the CXF Bus factory uses the same name to lookup descriptor defining the bus to be used for clients or endpoints (usually cxf.xml). Generally speaking, we might want to have the JAX-WS clients end up always using different Spring descriptors then any other consumer of the CXF Spring Bus factory.

            [JBWS-3832] Different default Spring descriptor name for creating client and server Bus instances

            The testcase for this feature requires JBWS-3835.

            Alessio Soldano added a comment - The testcase for this feature requires JBWS-3835 .

            Although it succeeds, I see the followinf exception on screen.

            Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=2, useUnlimitedThreads=false
            org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase(org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase$3)java.lang.Exception: "JBAS014803: Duplicate resource [(\"system-property\" => \"org.jboss.ws.cxf.jaxws-client.bus.selector\")]"
                    at org.jboss.as.webservices.deployer.RemoteDeployer.checkResult(RemoteDeployer.java:470)
                    at org.jboss.as.webservices.deployer.RemoteDeployer.applyUpdate(RemoteDeployer.java:457)
                    at org.jboss.as.webservices.deployer.RemoteDeployer.setSystemProperty(RemoteDeployer.java:442)
                    at org.jboss.wsf.test.JBossWSTestHelper.setSystemProperty(JBossWSTestHelper.java:396)
                    at org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase$3.setUp(CustomBusServletTestCase.java:85)
                    at org.jboss.wsf.test.JBossWSTestSetup$1.protect(JBossWSTestSetup.java:140)
                    at junit.framework.TestResult.runProtected(TestResult.java:128)
                    at org.jboss.wsf.test.JBossWSTestSetup.run(JBossWSTestSetup.java:148)
                    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
                    at org.junit.runners.Suite.runChild(Suite.java:128)
                    at org.junit.runners.Suite.runChild(Suite.java:24)
                    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                    at java.lang.Thread.run(Thread.java:745)
            Running org.jboss.test.ws.jaxws.cxf.in_container_client.ServletTestCase
            

            Roberto Polli (Inactive) added a comment - Although it succeeds, I see the followinf exception on screen. Concurrency config is parallel= 'classes' , perCoreThreadCount= true , threadCount=2, useUnlimitedThreads= false org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase(org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase$3)java.lang.Exception: "JBAS014803: Duplicate resource [(\" system-property\ " => \" org.jboss.ws.cxf.jaxws-client.bus.selector\ ")]" at org.jboss.as.webservices.deployer.RemoteDeployer.checkResult(RemoteDeployer.java:470) at org.jboss.as.webservices.deployer.RemoteDeployer.applyUpdate(RemoteDeployer.java:457) at org.jboss.as.webservices.deployer.RemoteDeployer.setSystemProperty(RemoteDeployer.java:442) at org.jboss.wsf.test.JBossWSTestHelper.setSystemProperty(JBossWSTestHelper.java:396) at org.jboss.test.ws.jaxws.cxf.in_container_client.CustomBusServletTestCase$3.setUp(CustomBusServletTestCase.java:85) at org.jboss.wsf.test.JBossWSTestSetup$1.protect(JBossWSTestSetup.java:140) at junit.framework.TestResult.runProtected(TestResult.java:128) at org.jboss.wsf.test.JBossWSTestSetup.run(JBossWSTestSetup.java:148) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang. Thread .run( Thread .java:745) Running org.jboss.test.ws.jaxws.cxf.in_container_client.ServletTestCase

            Preliminary patch idea

            Alessio Soldano added a comment - Preliminary patch idea

              rhn-support-asoldano Alessio Soldano
              rhn-support-asoldano Alessio Soldano
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: