Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3360

ASM_12008 fails due to undeclared XML Namespace prefix in TestComposite5.compsite

    XMLWordPrintableJSON

Details

    Description

      ASM_12008_Testcase fails with an XML Schema validation error:

      05-Nov-2009 10:21:27 org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader [] (SchemaError)
      SEVERE: XMLSchema validation error occured in: TestComposite5.composite ,line = 24, column = 3, Message = UndeclaredPrefix: Cannot resolve 'test:TestComposite5' as a QName: the prefix 'test' is not declared.

      This relates to TestComposite5.composite in contribution ASM_12008. This artifact uses a prefix "test:" but its namespace declarations don't have a declaration for such a namespace.

      The required fix is to add a namespace declaration for "xmlns:test", referencing the main "test" namespace for composites:

      Index: ASM_12008/src/main/resources/TestComposite5.composite
      ===================================================================
      — ASM_12008/src/main/resources/TestComposite5.composite (revision 372)
      +++ ASM_12008/src/main/resources/TestComposite5.composite (working copy)
      @@ -1,33 +1,34 @@
      -<?xml version="1.0" encoding="UTF-8"?>
      <!-

      • *
      • * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
      • * OASIS trademark, IPR and other policies apply.
      • *
        --->
        <!-
        -Copy of TestComposite5 with different contents offering
      • 1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
      • 0 references
        --->
        -<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
      • targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
        +<?xml version="1.0" encoding="UTF-8"?>
        +<!--
        + *
        + * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
        + * OASIS trademark, IPR and other policies apply.
        + *
        +-->
        +<!--
        +Copy of TestComposite5 with different contents offering
        + 1 service, with a remotable interface type=Service1 (other TestComposite5 has Service2)
        + 0 references
        +-->
        +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
        + targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
        + xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
        name="TestComposite5">
      • <service name="Service1" promote="TestComposite5Component1/Service1">
      • <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
      • </service>
        -
      • <property name="serviceName" type="string"/>
      • <component name="TestComposite5Component1">
      • <implementation.composite name="test:TestComposite5"/>
      • <service name="Service1">
      • <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
      • </service>
      • <!-- Note that the property is fixed as "servicex" which causes this string
      • to appear in the output of the service, if invoked -->
      • <property name="serviceName">servicex</property>
      • </component>
        -
        -</composite>
        +
        + <service name="Service1" promote="TestComposite5Component1/Service1">
        + <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
        + </service>
        +
        + <property name="serviceName" type="string"/>
        +
        + <component name="TestComposite5Component1">
        + <implementation.composite name="test:TestComposite5"/>
        + <service name="Service1">
        + <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
        + </service>
        + <!-- Note that the property is fixed as "servicex" which causes this string
        + to appear in the output of the service, if invoked -->
        + <property name="serviceName">servicex</property>
        + </component>
        +
        +</composite>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramkumar.rj Ramkumar Ramalingam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: