[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: help:cant get gallileo eclipse STP tuscany v1 or v2 m3 working



i've attached a picture of my eclipse project tree.

Ive done two variants -

one with the composite file in src/resources dir

and one just top level with no substructure.

eclipse wont let you add src/resources to class path as top level src is all ready in.

either way i get this same error about the contribution

starting new domain

02-Sep-2009 15:37:17 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: demoSCA.composite
02-Sep-2009 15:37:17 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution:  file:/C:/documents%20and%20settings/802518659/workspace/demo V1SCA/bin/
02-Sep-2009 15:37:19 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: demoSCA.composite
lookup service

Exception in thread "main" org.osoa.sca.ServiceRuntimeException: The service HelloWorld has not been contributed to the domain
	at  org.apache.tuscany.sca.node.impl.NodeImpl.getServiceReferenc e(NodeImpl.java:779)
	at  org.apache.tuscany.sca.node.impl.NodeImpl.getService(NodeImp l.java:746)
	at  org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.g etService(DefaultSCADomain.java:227)
	at demoV1Main.main(demoV1Main.java:25)

what exactly in SCA terms is a contribution ?



here is my latest .composite file

<?xml version="1.0" encoding="UTF-8"?>
<sca:composite xmlns:sawsdl="http://www.w3.org/ns/sawsdl"; xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"; name="demoSCA" targetNamespace="http://eclipse.org/demoV1_1SCA/src/resources/demoSCA";>
 <sca:component name="HelloWorldComponent">
   <sca:implementation.java class="HelloWorldImpl"/>
   <sca:service name="HelloWorld"/>
 </sca:component>
 <sca:service name="HelloWorld" promote="HelloWorldComponent/HelloWorld"/>
</sca:composite>

have i got this right now? thanks in advance