Hi, Thank you very much for the information. I have created my composite. This is the composite: <?xml version="1.0" encoding="ISO-8859-15"?> <sca:composite xmlns:sca=" <http://www.osoa.org/xmlns/sca/1.0> http://www.osoa.org/xmlns/sca/1.0" name="InformationService" targetNamespace=" <http://informationservice.myproject.eu> http://informationservice.myproject.eu"> <sca:component name="InformationServiceComponent"> <sca:implementation.java class="eu.myproject.information.is.impl.InformationServiceImpl"/> <sca:service name="InformationService" promote="InformationServiceComponent/InformationService"> <sca:interface.java interface="eu.myproject.information.is.InformationService"/> <sca:binding.ws uri=" <http://localhost:8888/axis2/services/InformationService> http://localhost:8888/axis2/services/InformationService"/> </sca:service> </sca:component> </sca:composite> But I get this error message when I run the Server: 03-jul-2008 10:47:43 org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl$1 problem
ADVERTENCIA: [WARNING] Duplicate service name: InformationServiceComponent/InformationService null Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor Exception in thread "main" org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.NullPointerException at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.j ava:264) at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69 ) at eu.myproject.information.is.server.InformationServiceServer.main(Information ServiceServer.java:17) Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.NullPointerException at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCA Domain.java:180) at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.j ava:230) ... 2 more Caused by: org.apache.tuscany.sca.core.assembly.ActivationException: java.lang.NullPointerException at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(Composi teActivatorImpl.java:737) at org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCA Domain.java:178) ... 3 more Caused by: java.lang.NullPointerException at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl. isWrapperStyle(WSDLOperationIntrospectorImpl.java:105) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl. getWrapper(WSDLOperationIntrospectorImpl.java:113) at org.apache.tuscany.sca.binding.ws.axis2.Java2WSDLHelper.createWSDLInterfaceC ontract(Java2WSDLHelper.java:128) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(A xis2ServiceBindingProvider.java:50) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createSe rviceBindingProvider(Axis2BindingProviderFactory.java:57) at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createSe rviceBindingProvider(Axis2BindingProviderFactory.java:40) at org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBin dingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryExten sionPoint.java:194) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addServiceBindin gProvider(CompositeActivatorImpl.java:397) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(Composi teActivatorImpl.java:671) at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(Composi teActivatorImpl.java:729) Do you know what is wrong? Thanks in advance, Adriana _____ De: Raymond Feng [mailto:[EMAIL PROTECTED] Enviado el: miƩrcoles, 02 de julio de 2008 17:31 Para: [email protected] Asunto: Re: Module or composite file? / Using SCA components from non SCA clients Hi, You need to write a composite file to declare the component. Please see an example at: https://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-serv ice <composite xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://helloworld" name="helloworldws"> <component name="HelloWorldServiceComponent"> <implementation.java class="helloworld.HelloWorldImpl" /> <service name="HelloWorldService"> <binding.ws uri="http://localhost:8085/HelloWorldService"/> </service> </component> </composite> In the sample above, we expose the HelloWorldServiceComponent as a web service. If you want to consume SCA services from outside the SCA domain, you probably need to access the services using the protocols used for the bindings. For example, use web services to access a SCA service configured with binding.ws. If the client code is in the same address space as the node, you can use org.apache.tuscany.sca.host.embedded.SCADomain.getService(cls, serviceName) to get a proxy representing the service. Thanks, Raymond From: Adriana Verdejo <mailto:[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2008 1:19 AM To: [email protected] Subject: Module or composite file? / Using SCA components from non SCA clients Dear all I am new using Tuscany. I would like to provide a remotable service in the Java language and publish it to remote clients over SOAP. I have the code ready, with my interfaces and implementations and I would like to use SCA for providing the service. I have added the correspondent annotations (@Remotable in the interfaces and @Service in the implementations), I underdstand I have to also generate the .composite file but from different sources/samples I have seen I should generate a .module file or a .composite file. Which is right? And where should it be located? How do I know all is right? Finally, how I should use my service from a non SCA client? Thanks in advance and best regards, Adriana
