okay - thanks for the reply - some little movement now.
1st neethi jars - I had only included the tuscany_sca_all.jar in the lib
build
so idependtly i did a search in findJAR.com and found the apache neethi
project and downloaded it from there - i'll now go back and tidy up and
us the version in the tuscany distro - but its the same jar so that
works okay.
next problem i ran into was it couldnt find a RunAs class - did a
findJAR on that and hit on the jboss-ejb3x jar - when i included that in
the build path and ran it it seems to come up
however my last problem seems to be (in my v1 example) that the it cant
find my service - not quite sure why
heres the latest composite def ( ihad to manually remove the <sawsdl>
that the gallileo editor puts in and then the tuscany engine domain
would come up.)
<?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://demoV2SCA">
<sca:component name="HelloWorldComponent">
<sca:implementation.java class="HelloWorldImpl"/>
<sca:service name="HelloWorld"/>
</sca:component>
<sca:service name="HelloWorld" promote="HelloWorldComponent/HelloWorld">
<sca:interface.java interface="HelloWorld"/>
</sca:service>
</sca:composite>
and client code looks like
public static void main(String[] args) {
// TODO Auto-generated method stub
//create new Tuscany node
System.out.println("starting new domain\n");
// Locate the service using SCA APIs
SCADomain domain =
SCADomain.newInstance("resource/demoSCA.composite");
System.out.println("lookup service\n");
HelloWorld hello = domain.getService(HelloWorld.class,
"HelloWorld");
// Calculate
System.out.println("say " + hello.helloWorld());
try
{
System.in.read();
} catch (Exception e)
{
System.exit(0);
}
SCADomain.removeInstance(domain);
}
}
error i get is my service not been contibuted to the domain - see below.
not sure what i have done wrong here. What do i need to add to let it
parse the service and add to the registry so the lookup code can locate
it ?
02-Sep-2009 09:24:37 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: resource/demoSCA.composite
02-Sep-2009 09:24:37
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper startModules
WARNING: Exception starting module
org.apache.tuscany.sca.core.databinding.module.DataBindingMo
duleActivator :org/apache/axiom/om/OMElement
02-Sep-2009 09:24:37
org.apache.tuscany.sca.implementation.java.module.JavaRuntim
eModuleActivator start
WARNING: Class proxys not supported due to
NoClassDefFoundError:net/sf/cglib/proxy/Callback
02-Sep-2009 09:24:37
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper startModules
WARNING: Exception starting module
org.apache.tuscany.sca.http.jetty.module.JettyRuntimeModuleA ctivator
:javax/servlet/ServletException
02-Sep-2009 09:24:38 org.apache.tuscany.sca.node.impl.NodeImpl
configureNode
INFO: Loading contribution:
file:/C:/documents%20and%20settings/802518659/workspace/demo V1SCA/bin/
02-Sep-2009 09:24:38 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: resource/demoSCA.composite
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)
---
lastly re the version 2 stuff - i tried changing the XML name space to
the correct one for version 2 but the validator in the eclipse project
wont accept it and marks it as faulty and therefore the build wont
complete. thus until the soa tools is upgraded i cant do it as an SCA
tools project. I could try a manual java project i guess and see what
happens - might try that when i get the problems ironed out of the
version 1 demo
thanks Will