Incorrect warning message raised for component Reference with no explicit 
binding declared
------------------------------------------------------------------------------------------

                 Key: TUSCANY-2963
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2963
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Assembly Model
    Affects Versions: Java-SCA-2.0
            Reporter: Mike Edwards
            Priority: Minor
             Fix For: Java-SCA-2.0


When running one of the OASIS testcases - ASM_4001_TestCase - the following 
warning message is generated:

15-Apr-2009 10:12:48 
org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceEndpointReferenceBuilderImpl
WARNING: Composite {http://oasis/tests}TEST_ASM_4001 Component TestClient 
Reference reference1 must not specify endpoints using both target attribute and 
with binding uri attribute

This warning is incorrect as the reference concerned has no binding specified, 
only a target attribute set.

The composite in question is as follows:

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903";
           targetNamespace="http://oasis/tests";
           xmlns:test="http://oasis/tests";
           name="TEST_ASM_4001">
           
    <component name="TestClient">
                <implementation.composite name="test:TestClient_0002"/>
                <service name="TestInvocation">
                        <interface.java interface="test.TestInvocation"/>
            <binding.ws/>
                </service>
        <reference name="reference1" target="TestComponent1/Service1" />
        <property name="testName">ASM_4001</property>
    </component>
    
    <!-- Component which uses a composite which has a @constrainingType 
attribute
         declared -->
    <component name="TestComponent1">
                <implementation.composite name="test:TestComposite42"/>
        <property name="serviceName">service1</property>
    </component> 

</composite>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to