Building two composite ,one implemented by the other, get a warning
-------------------------------------------------------------------
Key: TUSCANY-1671
URL: https://issues.apache.org/jira/browse/TUSCANY-1671
Project: Tuscany
Issue Type: Bug
Components: Java SCA Assembly Model
Affects Versions: Java-SCA-Next
Environment: WinXP,Eclipse 3.2
Reporter: wangfeng
Fix For: Java-SCA-1.0
In my sca domain,there are two contributions which named Contribution_A and
Contribution_B and the two contributions is deployable too.
In Contribution_B,there is a component which implemented by a composite in
Contribution_A.And the Contribution_A's composite build first,and then build
the Contribution_B's composite.
The conposite building processor will put a '$promoted$.' service on the
component when the component service is promoted to a composite service.When
building the Contribution_B's component which is implemented by the composite
in Contribution_A, the component implementation services will not match the
component type service,the component is implemented by the composite in
Contribution_A,so print an warning as below:
There is an warning message on the console:
2007-9-6 16:26:33
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem
Warn: [WARNING] Service not found for component service:
HelloServiceComponent/$promoted$.HelloService null
my composite on Contribution_A:
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://www.osoa.org/xmlns/sca/1.0"
name="hello">
<service name="HelloService" promote="HelloServiceComponent"/>
<component name="HelloServiceComponent">
<implementation.java class="com.demo.HelloImpl" />
</component>
</composite>
my composite on Contribution_B:
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://www.osoa.org/xmlns/sca/1.0"
name="world">
<service name="WorldService" promote="WorldServiceComponent"/>
<component name="WorldServiceComponent">
<implementation.java class="com.demo.WorldImpl" />
<reference name="hello" target="WorldService_Hello"/>
</component>
<component name="WorldService_Hello">
<implementation.composite name="hello"/>
</component>
</composite>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]