On Tue, Oct 5, 2010 at 4:04 PM, antony (JIRA) <dev@tuscany.apache.org> wrote: > implmentation.composite not working in 1.6 > ------------------------------------------ > > Key: TUSCANY-3703 > URL: https://issues.apache.org/jira/browse/TUSCANY-3703 > Project: Tuscany > Issue Type: Test > Components: Java SCA Java Implementation Extension > Affects Versions: Java-SCA-1.6 > Environment: SCA 1.6, JSF, Hibernate Web Application > Reporter: antony > Fix For: Java-SCA-1.6.1 > > > I have two composite under web-inf directory. web.compoiste, test.composite. > where one of the component implementation in web.composite is implemented in > test.composite. > web.composite: > ------------------------- > <Component name="XXXComponent"> > <implementation.java class="com.test..xxxx"/> > > <reference name="userService" target="TargetComponent"> > <interface.java interface="com.test.IUser" /> > </reference> > </Component> > > <component name="TargetComponent"> > <implementation.composite name="sample:test"/> > </component> > > test.composite: > ---------------------- > <component name="UserComponent"> > <implementation.java class="com.test.impl.UserImpl"/> > </component> > > <service name="userService" promote="UserComponent"> > <interface.java interface="com.test.IUser" /> > </service> > But this throws a warning while starting the server....Component reference > userService does not have a binding which matches the bindings of service > $promoted$TargetComponent$slash$userService. > > While running my application, it throws below error. > Unable to create SCA binding invoker for local target XXXComponent reference > userService (bindingURI=TargetComponent operation=methodxxx) > > But the same code works in sca 2.0M5. I am migrating my code to 1.6. can u > please tell what is missing/wrong here? > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > >
Hi Antony Which bindings do you have defined on the services and references? Or are there no bindings defined as you've indicated here? Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com