Hi,

It seem that you use a wrong service name: SWsService. Can you check the Java 
implementation class to see if you have @Service annotation for SWsService or 
SWsService is annotated with @Remotable. The name of the service is the simple 
name of the service interface.

@Service(SWsService.class)
public class SWsServiceImpl implements SWsService {
}

Please note if SWsService is not remotable, the following class will create an 
SCA service using SWsServiceImpl as the interface and the service name is 
SWsServiceImpl.
public class SWsServiceImpl implements SWsService {
}

The other option is:

public class SWsServiceImpl implements SWsService {
}
and 
@Remotable
public interface SWsService {
}

Thanks,
Raymond 

Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: Service not found for component service: Component = SWComponent 
Service = SWsService



From: Nishant Chandra 
Sent: Tuesday, July 21, 2009 9:41 AM
To: [email protected] 
Subject: Error


Jul 21, 2009 10:05:39 PM org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: Checker.composite
Jul 21, 2009 10:05:40 PM org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: 
file:/F:/workspace/eclipse-default/TestSCARestaurant/bin/
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: Service not found for component service: Component = SWComponent 
Service = SWsService
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: No type specified on component property: Component = SWComponent 
Property = SWs
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.ComponentConfigurationBuilderImpl
WARNING: Service not found for component service: Component = 
CPCheckerComponent Service = CPCheckerService
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
WARNING: Service not found for component service: Component = SWComponent 
Service = SWsService
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
WARNING: No type specified on component property: Component = SWComponent 
Property = SWs
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.assembly.builder.impl.CompositeBindingURIBuilderImpl
WARNING: Service not found for component service: Component = 
CPCheckerComponent Service = CPCheckerService
Jul 21, 2009 10:05:41 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: ProfanityChecker.composite
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl activate
WARNING: Skipping component service not defined in the component type: 
SWComponent#SWsService
Jul 21, 2009 10:05:41 PM 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl activate
WARNING: Skipping component service not defined in the component type: 
CPCheckerComponent#CPCheckerService
Exception in thread "main" org.osoa.sca.ServiceUnavailableException: Unable to 
create SCA binding invoker for local target ProfanityCheckerComponent reference 
SWsService (bindingURI=/SWComponent/SWsService operation=getSWs)
 at 
org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.createInvoker(RuntimeSCAReferenceBindingProvider.java:199)
 at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addReferenceBindingInterceptor(RuntimeWireImpl.java:309)
 at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:188)
 at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:112)
 at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:258)
 at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:151)
 at $Proxy8.runProfanityChecker(Unknown Source)
 at 
com.fr.profanity.impl.CheckerServiceImpl.runChecker(CheckerServiceImpl.java:34)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at 
org.apache.tuscany.sca.implementation.java.invocation.JavaImplementationInvoker.invoke(JavaImplementationInvoker.java:156)
 at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
 at 
org.apache.tuscany.sca.binding.sca.impl.SCABindingInvoker.invoke(SCABindingInvoker.java:61)
 at 
org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.invoke(PassByValueInterceptor.java:60)
 at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:309)
 at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:156)
 at $Proxy7.runChecker(Unknown Source)
 at test.TestContentService.main(TestContentService.java:18)




Can someone comment on why this exception is being thrown?

Nishant

Reply via email to