2.0 M2 RC1: sample calculator-equinox is failing -------------------------------------------------
Key: TUSCANY-2954 URL: https://issues.apache.org/jira/browse/TUSCANY-2954 Project: Tuscany Issue Type: Bug Affects Versions: Java-SCA-M2 Reporter: Raymond Feng Assignee: Raymond Feng Priority: Blocker Fix For: Java-SCA-2.0-M2 The "run-equinox" target is failing. The root cause of the problem is due to the change made under https://issues.apache.org/jira/browse/TUSCANY-2877. Adding Eclipse-BuddyPolicy: dependent header exposes the META-INF/services folder to 3rd party jars and duplicate the loading of Tuscany module activators. run-equinox: [java] Apr 2, 2009 3:15:50 PM org.apache.tuscany.sca.node.equinox.launcher. NodeLauncher main [java] INFO: SCA contribution: ./target/sample-calculator-equinox.jar [java] Apr 2, 2009 3:15:50 PM org.apache.tuscany.sca.node.equinox.launcher. NodeLauncher main [java] INFO: SCA composite: Calculator.composite [java] [java] Apr 2, 2009 3:15:53 PM org.apache.tuscany.sca.extensibility.equinox. EquinoxServiceDiscoveryActivator start [java] INFO: Equinox-based service discoverer is now configured. [java] Apr 2, 2009 3:15:55 PM org.apache.tuscany.sca.node.impl.NodeImpl <in it> [java] INFO: Creating node: Calculator.composite [java] Apr 2, 2009 3:15:58 PM org.apache.tuscany.sca.node.impl.NodeImpl con figureNode [java] INFO: Loading contribution: file:/C:/Apache/tuscany-sca-2.0-M2/sampl es/calculator-equinox/./target/sample-calculator-equinox.jar [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.policy.xml.IntentProce ssor [java] WARNING: Unable to find the extension type {http://docs.oasis-open.o rg/ns/opencsa/sca/200903}implementation.java constrained by intent: {http://tusc any.apache.org/xmlns/sca/1.1}jaasAuthentication [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.policy.xml.IntentProce ssor [java] WARNING: Unable to find the extension type {http://docs.oasis-open.o rg/ns/opencsa/sca/200903}implementation.spring constrained by intent: {http://tu scany.apache.org/xmlns/sca/1.1}jaasAuthentication [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.policy.xml.IntentProce ssor [java] WARNING: Unable to find the extension type {http://docs.oasis-open.o rg/ns/opencsa/sca/200903}implementation.java constrained by intent: {http://tusc any.apache.org/xmlns/sca/1.1}identity [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.policy.xml.IntentProce ssor [java] WARNING: Unable to find the extension type {http://docs.oasis-open.o rg/ns/opencsa/sca/200903}implementation.spring constrained by intent: {http://tu scany.apache.org/xmlns/sca/1.1}identity [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.implementation.java.xm l.JavaImplementationProcessor [java] SEVERE: Contribution Resolve Exception occured due to: [java] Apr 2, 2009 3:16:04 PM org.apache.tuscany.sca.implementation.java.xm l.JavaImplementationProcessor [java] SEVERE: Contribution Resolve Exception occured due to: [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.implementation.java.xm l.JavaImplementationProcessor [java] SEVERE: Class Not Found Exception: calculator.CalculatorServiceImpl [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.implementation.java.xm l.JavaImplementationProcessor [java] SEVERE: Class Not Found Exception: calculator.CalculatorClient [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] WARNING: Component implementation not found: Component = CalculatorS erviceComponent Uri = null [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = addService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = subtractService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = multiplyService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = divideService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] WARNING: Component implementation not found: Component = CalculatorC lient Uri = null [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentConfigurationBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorClient Reference = calculatorService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] WARNING: Component implementation not found: Component = CalculatorS erviceComponent Uri = null [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = addService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = subtractService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = multiplyService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorServiceComponent Reference = divideService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] WARNING: Component implementation not found: Component = CalculatorC lient Uri = null [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. CompositeBindingURIBuilderImpl [java] SEVERE: Reference not found for component reference: Component = Cal culatorClient Reference = calculatorService [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Reference addService must not specify endpoints using both target attribute and with binding uri attribute [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Reference subtractService must not specify endpoints using both target attribute and with binding uri attribute [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Reference multiplyService must not specify endpoints using both target attribute and with binding uri attribute [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Reference divideService must not specify endpoints using bo th target attribute and with binding uri attribute [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Reference calculatorService must not specify endpoints usin g both target attribute and with binding uri attribute [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.assembly.builder.impl. ComponentReferenceEndpointReferenceBuilderImpl [java] WARNING: Component reference target not found, it might be a remote service running elsewhere in the SCA Domain: Composite = {http://sample}Calculat or Service = CalculatorServiceComponent [java] Apr 2, 2009 3:16:05 PM org.apache.tuscany.sca.node.equinox.launcher. NodeLauncherUtil node [java] SEVERE: SCA Node could not be created [java] java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC onstructorAccessorImpl.java:39) [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del egatingConstructorAccessorImpl.java:27) [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:51 3) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncherUtil .node(NodeLauncherUtil.java:161) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher.cre ateNode(NodeLauncher.java:99) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher.mai n(NodeLauncher.java:173) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeMain.main(No deMain.java:59) [java] Caused by: org.oasisopen.sca.ServiceRuntimeException: org.apache.tus cany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany .sca.implementation.java.introspect.impl.DuplicateReferenceException: addService [java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.jav a:259) [java] at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createNode(N odeFactoryImpl.java:42) [java] at org.apache.tuscany.sca.implementation.node.launcher.NodeImple mentationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:119) [java] ... 8 more [java] Caused by: org.apache.tuscany.sca.contribution.processor.Contributio nResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.Du plicateReferenceException: addService [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:184) [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac tProcessorExtensionPoint.java:374) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:196) [java] at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.res olveImplementation(BaseAssemblyProcessor.java:349) [java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv e(CompositeProcessor.java:991) [java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv e(CompositeProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac tProcessorExtensionPoint.java:374) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:196) [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso r.resolve(CompositeDocumentProcessor.java:162) [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso r.resolve(CompositeDocumentProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtif actProcessorExtensionPoint$LazyURLArtifactProcessor.resolve(DefaultURLArtifactPr ocessorExtensionPoint.java:329) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleURLAr tifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:121) [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionC ontentProcessor.resolve(ContributionContentProcessor.java:201) [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionC ontentProcessor.resolve(ContributionContentProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtif actProcessorExtensionPoint$LazyURLArtifactProcessor.resolve(DefaultURLArtifactPr ocessorExtensionPoint.java:329) [java] at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeI mpl.java:532) [java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.jav a:256) [java] ... 10 more [java] Caused by: org.apache.tuscany.sca.implementation.java.introspect.imp l.DuplicateReferenceException: addService [java] at org.apache.tuscany.sca.implementation.java.introspect.impl.Re ferenceProcessor.visitMethod(ReferenceProcessor.java:76) [java] at org.apache.tuscany.sca.implementation.java.impl.JavaClassIntr ospectorImpl.introspectClass(JavaClassIntrospectorImpl.java:109) [java] at org.apache.tuscany.sca.implementation.java.impl.JavaImplement ationFactoryImpl.createJavaImplementation(JavaImplementationFactoryImpl.java:55) [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:182) [java] ... 27 more [java] Exception in thread "main" org.apache.tuscany.sca.node.equinox.launc her.LauncherException: java.lang.reflect.InvocationTargetException [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncherUtil .node(NodeLauncherUtil.java:180) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher.cre ateNode(NodeLauncher.java:99) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher.mai n(NodeLauncher.java:173) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeMain.main(No deMain.java:59) [java] Caused by: java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC onstructorAccessorImpl.java:39) [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del egatingConstructorAccessorImpl.java:27) [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:51 3) [java] at org.apache.tuscany.sca.node.equinox.launcher.NodeLauncherUtil .node(NodeLauncherUtil.java:161) [java] ... 3 more [java] Caused by: org.oasisopen.sca.ServiceRuntimeException: org.apache.tus cany.sca.contribution.processor.ContributionResolveException: org.apache.tuscany .sca.implementation.java.introspect.impl.DuplicateReferenceException: addService [java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.jav a:259) [java] at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createNode(N odeFactoryImpl.java:42) [java] at org.apache.tuscany.sca.implementation.node.launcher.NodeImple mentationLauncherBootstrap.<init>(NodeImplementationLauncherBootstrap.java:119) [java] ... 8 more [java] Caused by: org.apache.tuscany.sca.contribution.processor.Contributio nResolveException: org.apache.tuscany.sca.implementation.java.introspect.impl.Du plicateReferenceException: addService [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:184) [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac tProcessorExtensionPoint.java:374) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:196) [java] at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.res olveImplementation(BaseAssemblyProcessor.java:349) [java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv e(CompositeProcessor.java:991) [java] at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv e(CompositeProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac tProcessorExtensionPoint.java:374) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:196) [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso r.resolve(CompositeDocumentProcessor.java:162) [java] at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso r.resolve(CompositeDocumentProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtif actProcessorExtensionPoint$LazyURLArtifactProcessor.resolve(DefaultURLArtifactPr ocessorExtensionPoint.java:329) [java] at org.apache.tuscany.sca.contribution.processor.ExtensibleURLAr tifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:121) [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionC ontentProcessor.resolve(ContributionContentProcessor.java:201) [java] at org.apache.tuscany.sca.workspace.processor.impl.ContributionC ontentProcessor.resolve(ContributionContentProcessor.java:1) [java] at org.apache.tuscany.sca.contribution.processor.DefaultURLArtif actProcessorExtensionPoint$LazyURLArtifactProcessor.resolve(DefaultURLArtifactPr ocessorExtensionPoint.java:329) [java] at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeI mpl.java:532) [java] at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.jav a:256) [java] ... 10 more [java] Caused by: org.apache.tuscany.sca.implementation.java.introspect.imp l.DuplicateReferenceException: addService [java] at org.apache.tuscany.sca.implementation.java.introspect.impl.Re ferenceProcessor.visitMethod(ReferenceProcessor.java:76) [java] at org.apache.tuscany.sca.implementation.java.impl.JavaClassIntr ospectorImpl.introspectClass(JavaClassIntrospectorImpl.java:109) [java] at org.apache.tuscany.sca.implementation.java.impl.JavaImplement ationFactoryImpl.createJavaImplementation(JavaImplementationFactoryImpl.java:55) [java] at org.apache.tuscany.sca.implementation.java.xml.JavaImplementa tionProcessor.resolve(JavaImplementationProcessor.java:182) [java] ... 27 more [java] osgi> [java] Java Result: 1 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.