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

antony resolved TUSCANY-3703.
-----------------------------

    Resolution: Fixed

<component name="UserComponent"> 
       <implementation.java class="com.test.impl.UserImpl"/> 
 </component> 
    
<service name="userService" promote="UserComponent"> 
       <interface.java interface="com.test.IUser" /> 
       <binding.ws uri="http://localhost:8080/xxx"/>
</service> 

I removed the binding tag and it is working now. If the service is exposed as 
webservice, then it cant be identified by other composite which is using this 
composite as an implemenation. you need to define one more service for the same 
component if you would like expose through any protocol..

> 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.

Reply via email to