On Tue, Aug 9, 2011 at 4:00 PM, Simon Laws <simonsl...@googlemail.com> wrote: > snip... >> >> Yes its that code which isn't working correctly. For example if you >> run something like the helloworld-scaclient testcase you should see an >> exception InvalidWSDLException: Element cannot be resolved: >> {http://sample/}sayHello. (The test does pass successfully even with >> that exception as the remote interface validataion code isn't enabled >> yet). >> >> ...ant >> > > I'm on: > > java version "1.6.0_26" > Java(TM) SE Runtime Environment (build 1.6.0_26-b03) > Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) > > and see: > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running sample.HelloworldTestCase > 09-Aug-2011 15:58:22 > org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRe > gistry initHazelcastInstance > INFO: started node in domain 'default' + at: /127.0.0.1:7654 > 09-Aug-2011 15:58:22 org.apache.tuscany.sca.impl.NodeImpl <init> > INFO: domain: default > 09-Aug-2011 15:58:23 org.apache.tuscany.sca.impl.NodeImpl installContribution > INFO: installContribution: helloworld > 09-Aug-2011 15:58:23 > org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRe > gistry addEndpoint > INFO: Add endpoint - (@106030716)Endpoint: URI = > HelloworldComponent#service-bi > nding(Helloworld/Helloworld) > 09-Aug-2011 15:58:23 org.apache.tuscany.sca.impl.NodeImpl startComposite > INFO: startComposite: helloworld/helloworld.composite > HelloworldSCAClient, using domainURI uri:default?wka=127.0.0.1:7654 > Calling HelloworldComponent.sayHello("world"): > wsdl: C:\Users\slaws\AppData\Local\Temp\endpoint154063411841302205.wsdl > wsdl: C:\Users\slaws\AppData\Local\Temp\endpoint4201080581756982322.wsdl > Hello world > 09-Aug-2011 15:58:24 > org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRe > gistry removeEndpoint > INFO: Removed endpoint - (@106030716)Endpoint: URI = > HelloworldComponent#servic > e-binding(Helloworld/Helloworld) > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.041 sec > > So presumably this is a success case > > Simon >
For me it gets the exception shown below when building with Maven with both IBM and Sun JDKs and in Eclipse i see that with the Sun JDK but the IBM one works ok. I think it was working in Maven back in July with some combination of JDK and Maven release but i can't remember what that combination was now, i'll try to find some time to find that again. ...ant Running sample.HelloworldTestCase 10-Aug-2011 09:20:24 org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRegistry initHazelcastInstance INFO: started node in domain 'default' + at: /127.0.0.1:7654 10-Aug-2011 09:20:24 org.apache.tuscany.sca.impl.NodeImpl <init> INFO: domain: default 10-Aug-2011 09:20:25 org.apache.tuscany.sca.impl.NodeImpl installContribution INFO: installContribution: helloworld 10-Aug-2011 09:20:26 org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRegistry addEndpoint INFO: Add endpoint - (@20859482)Endpoint: URI = HelloworldComponent#service-binding(Helloworld/Helloworld) 10-Aug-2011 09:20:26 org.apache.tuscany.sca.impl.NodeImpl startComposite INFO: startComposite: helloworld/helloworld.composite HelloworldSCAClient, using domainURI uri:default?wka=127.0.0.1:7654 Calling HelloworldComponent.sayHello("world"): wsdl: C:\Users\IBM_AD~1\AppData\Local\Temp\endpoint2919453658669566982.wsdl org.apache.tuscany.sca.interfacedef.wsdl.impl.InvalidWSDLException: Element cannot be resolved: {http://sample/}sayHello at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl$WSDLPart.<init>(WSDLOperationIntrospectorImpl. java:276) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getMessageType(WSDLOperationIntrospectorImpl.j ava:194) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getInputType(WSDLOperationIntrospectorImpl.jav a:145) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getOperation(WSDLOperationIntrospectorImpl.jav a:214) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.getOperation(WSDLInterfaceIntrospectorImpl.jav a:87) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.introspectOperations(WSDLInterfaceIntrospector Impl.java:67) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.introspectPortType(WSDLInterfaceIntrospectorIm pl.java:78) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLFactoryImpl.createWSDLInterface(WSDLFactoryImpl.java:56) at org.apache.tuscany.sca.core.assembly.impl.WSDLHelper.createWSDLInterfaceContract(WSDLHelper.java:80) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.setNormalizedWSDLContract(RuntimeEndpointImpl.java:1067) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.resolve(RuntimeEndpointImpl.java:937) at org.apache.tuscany.sca.assembly.impl.EndpointImpl.getComponent(EndpointImpl.java:79) at org.apache.tuscany.sca.client.impl.RemoteServiceInvocationHandler.createEndpointReference(RemoteServiceInvocationHandler.j ava:175) at org.apache.tuscany.sca.client.impl.RemoteServiceInvocationHandler.getHandler(RemoteServiceInvocationHandler.java:152) at org.apache.tuscany.sca.client.impl.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java:109) at $Proxy8.sayHello(Unknown Source) at sample.HelloworldSCAClient.main(HelloworldSCAClient.java:42) at sample.HelloworldTestCase.testSayHello(HelloworldTestCase.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) wsdl: C:\Users\IBM_AD~1\AppData\Local\Temp\endpoint4682113607030058420.wsdl org.apache.tuscany.sca.interfacedef.wsdl.impl.InvalidWSDLException: Element cannot be resolved: {http://sample/}sayHello at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl$WSDLPart.<init>(WSDLOperationIntrospectorImpl. java:276) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getMessageType(WSDLOperationIntrospectorImpl.j ava:194) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getInputType(WSDLOperationIntrospectorImpl.jav a:145) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLOperationIntrospectorImpl.getOperation(WSDLOperationIntrospectorImpl.jav a:214) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.getOperation(WSDLInterfaceIntrospectorImpl.jav a:87) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.introspectOperations(WSDLInterfaceIntrospector Impl.java:67) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceIntrospectorImpl.introspectPortType(WSDLInterfaceIntrospectorIm pl.java:78) at org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLFactoryImpl.createWSDLInterface(WSDLFactoryImpl.java:56) at org.apache.tuscany.sca.core.assembly.impl.WSDLHelper.createWSDLInterfaceContract(WSDLHelper.java:80) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.setNormalizedWSDLContract(RuntimeEndpointImpl.java:1067) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.resolve(RuntimeEndpointImpl.java:937) at org.apache.tuscany.sca.assembly.impl.EndpointImpl.getPolicySets(EndpointImpl.java:133) at org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl.haveMatchingPolicy(EndpointReferenceBinderImpl.java:6 32) at org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl.selectForwardEndpoint(EndpointReferenceBinderImpl.jav a:416) at org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl.bind(EndpointReferenceBinderImpl.java:262) at org.apache.tuscany.sca.core.runtime.impl.EndpointReferenceBinderImpl.bindRunTime(EndpointReferenceBinderImpl.java:134) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointReferenceImpl.resolveEndpointReference(RuntimeEndpointReferenceIm pl.java:432) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointReferenceImpl.initInvocationChains(RuntimeEndpointReferenceImpl.j ava:312) at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointReferenceImpl.getInvocationChains(RuntimeEndpointReferenceImpl.ja va:204) at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:249) at org.apache.tuscany.sca.core.invocation.impl.JDKInvocationHandler.invoke(JDKInvocationHandler.java:106) at org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.doInvokeSync(AsyncJDKInvocationHandler.java:241) at org.apache.tuscany.sca.core.invocation.impl.AsyncJDKInvocationHandler.invoke(AsyncJDKInvocationHandler.java:163) at org.apache.tuscany.sca.client.impl.RemoteServiceInvocationHandler.invoke(RemoteServiceInvocationHandler.java:109) at $Proxy8.sayHello(Unknown Source) at sample.HelloworldSCAClient.main(HelloworldSCAClient.java:42) at sample.HelloworldTestCase.testSayHello(HelloworldTestCase.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Hello world 10-Aug-2011 09:20:27 org.apache.tuscany.sca.registry.hazelcast.HazelcastDomainRegistry removeEndpoint INFO: Removed endpoint - (@20859482)Endpoint: URI = HelloworldComponent#service-binding(Helloworld/Helloworld) Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.192 sec Results : Tests run: 1, Failures: 0, Errors: 0, Skipped: 0