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 Fix For: Java-SCA-0.90 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]