[ https://issues.apache.org/jira/browse/TUSCANY-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520356 ]
Vamsavardhana Reddy commented on TUSCANY-1480: ---------------------------------------------- The following may be used to create a testcase for this JIRA: 1. scaDomain = new EmbeddedSCADomain(...); scaDomain.start(); 2. // Add contribution from calculator sample 3. scaDomain.getDomainCompositeHelper().activateDomain() 4. // Call scaDomain.getDomainCompositeHelper().startComponent() on each of the components from calculator sample 5. //At this step access the service provided by calculator sample. 6. // Add contribution from helloworld sample 7. scaDomain.getDomainCompositeHelper().activateDomain() 8. // Call scaDomain.getDomainCompositeHelper().startComponent() on each of the components from helloworld sample 9. // At this step access service provided by calculator sample. calculator service should be accessible. Note:This is failing currenly // Access service provided by helloworld sample. helloworld service should be accessible. > Calling EmbeddedSCADomain.activateDomain() after adding a contribution > renders services from previous contribution unusable > ---------------------------------------------------------------------------------------------------------------------------- > > Key: TUSCANY-1480 > URL: https://issues.apache.org/jira/browse/TUSCANY-1480 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core Runtime > Affects Versions: Java-SCA-0.91 > Reporter: Vamsavardhana Reddy > Assignee: Jean-Sebastien Delfino > Fix For: Java-SCA-Next > > > Here is a situation I am running into. > Step 0: Create an EmbeddedSCADomain. > Step 1: Add contribution from contribution1.jar (which provides say > "Service1") to EmbeddedSCADomain from Step 0. > Step 2: Call EmbeddedSCADomain.DomainCompositeHelper.activateDomain() > Step 3: Call EmbeddedSCADomain.DomainCompositeHelper.startComponent() on all > componets from contribution1.jar. > Step 4: Add contribution from contribution2.jar (which provides say > "Service2") to EmbeddedSCADomain from Step 0. > Step 5: Call EmbeddedSCADomain.DomainCompositeHelper.activateDomain() > Step 6: Call EmbeddedSCADomain.DomainCompositeHelper.startComponent() on all > componets from contribution2.jar. > After Step 3, I am able to run Service1 successfully. At Step 5, I get a > message like the following: > "Composite assembly problem: Service not found for component service: > CalculatorServiceComponent/$promoted$.CalculatorService" > After Step 6, Service1 no longer runs, where as Service2 runs successfully. > If I call DomainCompositeHelper.startComponent() on each of the components > from the first contribution after deploying the second, (that is after Step > 6 from), it results in an Exception which I ignore and continue. But > towards the end I have services from both contributions running > successfully. -- 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]