tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Feng <enjoyj...@gmail.com>
Subject Re: ReferenceNotFoundForComponentReference
Date Fri, 11 Oct 2013 21:57:16 GMT
Your implementation class that owns the reference needs to declare a field or property that
matches the reference name 'billService'.

For example,

@Reference
protected BillService billService;

Thanks,
Raymond

On Oct 11, 2013, at 2:40 PM, Owen Hernandez <owen092481@gmail.com> wrote:

> Hi,
> 
> I´m trying to run the example, adding the following reference to a restfull web service
> 
> <reference name="billService">
> 			<interface.java interface="services.BillService" />
> 			<tuscany:binding.rest uri="http://localhost/Codeigniter_REST_Server/api/dashboard_REST/bill/">
> 			</tuscany:binding.rest>
> 		</reference>
> 
> But it doesn´t work. I´m getting this message:
> 
> Starting ...
> oct 11, 2013 1:17:05 PM org.apache.tuscany.sca.node.impl.NodeImpl start
> Información: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 domain:
default
> oct 11, 2013 1:17:05 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> Información: Loading contribution: file:/C:/Users/user/Documents/My%20Box%20Files/Java/StoreSample2/bin/
> oct 11, 2013 1:17:08 PM org.apache.tuscany.sca.builder.impl.ComponentBuilderImpl [Composite:
{http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: Catalog] (ReferenceNotFoundForComponentReference)
> Grave: [ASM50008] Component type reference not found for component reference: Component
= Catalog Reference = billService
> Exception in thread "main" java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: Catalog] - [ASM50008]
Component type reference not found for component reference: Component = Catalog Reference
= billService
> 	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:178)
> 	at launch.Launch.main(Launch.java:34)
> Caused by: org.oasisopen.sca.ServiceRuntimeException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912},
Component: Catalog] - [ASM50008] Component type reference not found for component reference:
Component = Catalog Reference = billService
> 	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:203)
> 	at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:315)
> 	at org.apache.tuscany.sca.node.impl.NodeImpl.load(NodeImpl.java:202)
> 	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:118)
> 	... 1 more
> 
> Can you tell if the binding.rest is appropiate to connect a sca implementation with a
non-sca (RESTfull web service)?
> If there´s another choice, what is that?
> 
> Thanks.


Mime
View raw message