Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1818

Descriptor validation errors due to config model version change

    Details

      Description

      When updating from 1.1.M4 to 1.1.CR1, I got the following error in one of my tests:

      [INFO] Outputting SwitchYard configuration model to /home/gbrown/repositories/overlord/objectiser/rtgov/release/jbossas/tests/activity-management/bean-service/target/switchyard_xml/META-INF/switchyard.xml
      [INFO] Validating SwitchYard configuration model...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 19.235s
      [INFO] Finished at: Thu Nov 07 10:14:24 GMT 2013
      [INFO] Final Memory: 46M/661M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.switchyard:switchyard-plugin:1.1.0-SNAPSHOT:configure (default) on project tests-actmgmt-jbossas-bean-service: SWITCHYARD011602: Model [org.switchyard.config.model.switchyard.v1.V1SwitchYardModel] is invalid: cvc-complex-type.2.4.a: Invalid content was found starting with element 'implementation.bean'. One of '{"http://docs.oasis-open.org/ns/opencsa/sca/200912":service, "http://docs.oasis-open.org/ns/opencsa/sca/200912":reference, "http://docs.oasis-open.org/ns/opencsa/sca/200912":property, "http://docs.oasis-open.org/ns/opencsa/sca/200912":requires, "http://docs.oasis-open.org/ns/opencsa/sca/200912":policySetAttachment, "http://docs.oasis-open.org/ns/opencsa/sca/200912":extensions}' is expected. -> [Help 1]
      [ERROR] 
      

      When I checked the generated version of the descriptor, it had duplicate 'implementation.bean' entries:

              <component name="OrderService">
                  <implementation.bean xmlns="urn:switchyard-component-bean:config:1.1" class="org.overlord.rtgov.tests.actmgmt.jbossas.beanservice.OrderServiceBean"/>
                  <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.overlord.rtgov.tests.actmgmt.jbossas.beanservice.OrderServiceBean"/>
                  <service name="OrderService">
                      <interface.java interface="org.overlord.rtgov.tests.actmgmt.jbossas.beanservice.OrderService"/>
                  </service>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dward David Ward
                Reporter:
                objectiser Gary Brown
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: