[ http://issues.apache.org/jira/browse/TUSCANY-363?page=comments#action_12383200 ]
Simon Laws commented on TUSCANY-363: ------------------------------------ Here are some more errors i got by not using the full set of j2sews jars. You could investigate these for quite a while without realizing they are classpath errors. runHelloWorldWSClient: [java] May 11, 2006 11:48:50 PM org.apache.tuscany.core.client.TuscanyRuntime$Monitor moduleStarted [java] INFO: Started application module [HelloWorldModuleComponent] [java] Exception in thread "main" java.lang.NullPointerException [java] at org.apache.axis2.util.UUIDGenerator.getInitialUUID(UUIDGenerator.java:75) [java] at org.apache.axis2.util.UUIDGenerator.getUUID(UUIDGenerator.java:45) [java] at org.apache.axis2.description.OutInAxisOperationClient.setMessageID(OutInAxisOperation.java:198) [java] at org.apache.axis2.description.OutInAxisOperationClient.addMessageContext(OutInAxisOperation.java:156) [java] at org.apache.tuscany.binding.axis2.externalservice.Axis2OperationInvoker.invokeOperation(Axis2OperationInvoker.java:73) [java] at org.apache.tuscany.binding.axis2.externalservice.Axis2ServiceInvoker.invoke(Axis2ServiceInvoker.java:53) [java] at org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.doInvoke(ExternalServiceTargetInvoker.java:84) [java] at org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invokeTarget(ExternalServiceTargetInvoker.java:77) [java] at org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invoke(ExternalServiceTargetInvoker.java:93) [java] at org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39) [java] at org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112) [java] at $Proxy14.getGreetings(Unknown Source) [java] at helloworld.HelloWorldClient.main(HelloWorldClient.java:56) [java] Java Result: 1 And Exception in thread "main" org.apache.tuscany.core.context.DuplicateNameException: org.apache.tuscany.container.java.builder.JavaContextFactoryBuilder Context stack trace: [tuscany.system][org.apache.tuscany.core.system] at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:508) at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:324) at org.apache.tuscany.core.system.config.SystemContextFactory.createContext(SystemContextFactory.java:125) at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:88) at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:499) at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:446) at org.apache.tuscany.core.client.BootstrapHelper.registerModule(BootstrapHelper.java:133) at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:98) at helloworld.HelloWorldClient.main(HelloWorldClient.java:44) I don't actually know what is causing these specifically but if I make my classespath include all of the jars in j2sews then the sample works. > FAQ Entry: Trying to run web services with the J2SE jars > -------------------------------------------------------- > > Key: TUSCANY-363 > URL: http://issues.apache.org/jira/browse/TUSCANY-363 > Project: Tuscany > Type: Improvement > Components: Java SCA Samples > Environment: at least Fedora Core 5 ( maybe all bu I've only tried this on > Fedora) > Reporter: Simon Laws > Priority: Minor > > If you try and run the HelloWorldWSClient client class but with the classpath > pointing to the j2se jars (rather than j2sews) you don't get a class not > found error, as you might expect, but a rather strange parse error when the > client tries to load the client sca.module file: > runHelloWorldWSClient: > [java] Exception in thread "main" > org.apache.tuscany.core.config.ConfigurationLoadException: Unrecognized > element [{http://www.osoa.org/xmlns/sca/0.9}binding.ws] > [java] at > org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:62) > [java] at > org.apache.tuscany.core.loader.assembly.ExternalServiceLoader.load(ExternalServiceLoader.java:57) > [java] at > org.apache.tuscany.core.loader.assembly.ExternalServiceLoader.load(ExternalServiceLoader.java:42) > [java] at > org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:66) > [java] at > org.apache.tuscany.core.loader.assembly.CompositeLoader.loadComposite(CompositeLoader.java:43) > [java] at > org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:41) > [java] at > org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:34) > [java] at > org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:66) > [java] at > org.apache.tuscany.core.config.impl.StAXModuleComponentConfigurationLoaderImpl.loadModule(StAXModuleComponentConfigurationLoaderImpl.java:51) > [java] at > org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:142) > [java] at > org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132) > [java] at > org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100) > [java] at > org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103) > [java] at hello -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira