1 Reply Latest reply on Nov 27, 2014 5:43 AM by Shenbaga Kumaramani

    ERROR: Duplicate Name: The name "IElementoWS" must be unique among services, references and component services.

    Shenbaga Kumaramani Newbie

      I have Two WSDL files which has the same Port Type [<wsdl:portType name="IElementoWS">] But Different Operations.

       

      So When i created java classes from these WSDL files , switchyard created an Interface IElementoWS for both the WSDL'S.

       

      When i tried to implement a bean service for both the Interfaces. it gives me the error in Switchyard XML. [Eventhough Package where the interfaces are present is different]

       

      [ERROR: Duplicate Name: The name "IElementoWS" must be unique among services, references and component services.

       

      can some one help me to resolve the issue?

       

      i am supposed to keep the same WSDL in same switchyard application and should not change the WSDL file to keep the operations in one WSDL.

       

      I am thinking the only way to resolve is to keep two switchyard application for each WSDL.

        • 1. Re: ERROR: Duplicate Name: The name "IElementoWS" must be unique among services, references and component services.
          Shenbaga Kumaramani Newbie

          I Changed the Bean Service Interface name and exposed the Service as WSDL Interface.

           

          now i am getting the below error.

           

          16:06:23,330 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC000001: Failed to start service jboss.deployment.unit."Simulator-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Simulator-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.SwitchYardException: SWITCHYARD012228: Service registration with name {urn:com.sample:Simulator:1.0}IElementoWS hides <sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="IElementoWS">

              <sca:interface.java interface="com.sample.models.IElementoWS"/>

          </sca:service>

                  at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:80)

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03-icedtea]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03-icedtea]

                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03-icedtea]

          Caused by: org.switchyard.SwitchYardException: SWITCHYARD012228: Service registration with name {urn:com.sample:Simulator:1.0}IElementoWS hides <sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="IElementoWS">

              <sca:interface.java interface="com.sample.models.IElementoWS"/>

          </sca:service>

                  at org.switchyard.deploy.internal.Deployment.validateServiceRegistration(Deployment.java:797)

                  at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:565)

                  at org.switchyard.deploy.internal.Deployment.start(Deployment.java:144)

                  at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:101)

                  at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:73)

                  ... 5 more

           

           

          16:06:23,332 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

          JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Simulator-0.0.1-SNAPSHOT.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Simulator-0.0.1-SNAPSHOT.jar".SwitchYardService: org.switchyard.SwitchYardException: SWITCHYARD012228: Service registration with name {urn:com.sample:Simulator:1.0}IElementoWS hides <sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="IElementoWS">

              <sca:interface.java interface="com.sample.models.IElementoWS"/>

          </sca:service>