You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <tu...@ws.apache.org> on 2007/08/09 19:37:42 UTC

[jira] Resolved: (TUSCANY-1328) can not locate service from a component whose implementation is composite

     [ https://issues.apache.org/jira/browse/TUSCANY-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TUSCANY-1328.
--------------------------------------

    Resolution: Fixed

This scenario is now working, and I also added a test case in recursive iTest

> can not locate service from a component whose implementation is composite
> -------------------------------------------------------------------------
>
>                 Key: TUSCANY-1328
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1328
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-0.90
>         Environment: Windows XP
>            Reporter: Yang Lei
>            Assignee: Luciano Resende
>             Fix For: Java-SCA-Next
>
>
> default.composite:
> <composite autowire="false"
> 	local="true"
> 	name="Iteration3Composite"
> 	policySets="sns:secure" requires="cns:confidentiality"
> 	targetNamespace="http://foo"
> 	xmlns:foo="http://foo"
> 	xmlns="http://www.osoa.org/xmlns/sca/1.0"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://www.osoa.org/xmlns/sca/1.0 http://www.osoa.org/xmlns/sca/1.0 ">
>                        <component name="MySimpleServiceInRecursive">
>                                     <implementation.composite name="foo:MySimpleService"/>
>                        </component>
> </composite>
> MySimpleService.composite:
> <composite autowire="false"
> 	local="true"
> 	name="MySimpleService"
> 	policySets="sns:secure" requires="cns:confidentiality"
> 	targetNamespace="http://foo"
> 	xmlns:foo="http://foo"
> 	xmlns="http://www.osoa.org/xmlns/sca/1.0"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://www.osoa.org/xmlns/sca/1.0 http://www.osoa.org/xmlns/sca/1.0 ">
>                   <service name="MyServiceOrig1" promote="MyServiceComponentOrig/MyService">
>                                        <interface.java interface="mysca.test.myservice.MyService"/>
>                   </service>
>                    <component name="MyServiceComponentOrig">
>                                  <implementation.java class="mysca.test.myservice.impl.MyServiceImpl"/>
>                    </component>
> </composite>
> MyServiceImpl
> @Service(interfaces={MyService.class, MyServiceByDate.class, MyListService.class, MyListServiceByYear.class})
> public class MyServiceImpl implements MyService, MyServiceByDate, MyListService, MyListServiceByYear{
> ...
> }
> When I try to locateService of  "MySimpleServiceInRecursive/MyServiceOrig1", got the following exception
> org.osoa.sca.ServiceRuntimeException: Service not found: MySimpleServiceInRecursive/MyServiceOrig1 at org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain.getService(EmbeddedSCADomain.java:230) at org.apache.tuscany.sca.host.embedded.impl.SimpleCompositeContextImpl.locateService(SimpleCompositeContextImpl.java:80) at test.sca.tests.MySimpleServiceInRecursiveTest.setUp(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke
> Thanks.

-- 
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org