Return-Path: X-Original-To: apmail-tuscany-dev-archive@www.apache.org Delivered-To: apmail-tuscany-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A1D7106CE for ; Thu, 28 Nov 2013 05:58:26 +0000 (UTC) Received: (qmail 52956 invoked by uid 500); 28 Nov 2013 05:58:25 -0000 Delivered-To: apmail-tuscany-dev-archive@tuscany.apache.org Received: (qmail 52677 invoked by uid 500); 28 Nov 2013 05:58:18 -0000 Mailing-List: contact dev-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list dev@tuscany.apache.org Received: (qmail 52669 invoked by uid 99); 28 Nov 2013 05:58:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Nov 2013 05:58:16 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.245.72] (HELO na3sys010aog102.obsmtp.com) (74.125.245.72) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Nov 2013 05:58:12 +0000 Received: from mail-ie0-f172.google.com ([209.85.223.172]) (using TLSv1) by na3sys010aob102.postini.com ([74.125.244.12]) with SMTP ID DSNKUpbbXrhsJ09Ne5tfZrX6sppiP+7Fca6T@postini.com; Wed, 27 Nov 2013 21:57:51 PST Received: by mail-ie0-f172.google.com with SMTP id qd12so13837919ieb.17 for ; Wed, 27 Nov 2013 21:57:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=E1R+mYgD2HH9fvudV4u4FHvTZEOkgEzcLTIRHRGirRY=; b=KmBPuFaJrZZo0StB55wIpUVUcmrxqTFWv5+7gPRSeMMTVVSwEfSmqKKcgXwkvsjA4f PPenPQoq6UZQb0JQIPBNZh2kDfjZxhsq2VVCoA+NoS7uWFlkhQzWuLi59C/oGwbyJf0R rBgWG9Z9yh0P1muZhZQUXyMLqwtH68OfMOV9gKdHgKPlrtJw9Ws2VSfIK1erdpL6XYNH /K9O268iFTGx7/fTfUVa2DR9zLpeRTW4E5YMpz22haUK9fTkz30KHrfPt9M/z+y69Gjk dpqU9BNB8+uszfanEpjSfMvhfDIsLxGjDRLI2nkWYtmdYpYN11YszUgVL3DDpCTtTDL4 +cbg== X-Gm-Message-State: ALoCoQnnT+4hb6PH2oH7YlqoxbjGvx5kOZhUE/ser1swWRbGO/3S8xqMiAv20cFkia8aCQ3+IViiBg0PMK2GjKErnyaU7UMIjm8WitdNHgqGxl6XZMm1O3GBZxgBYQJigiOhLs4VWOeldVNheZF9GbIyiKaG/d5+ig/JmDgD7M72O2hj3AnKSzo= X-Received: by 10.42.130.129 with SMTP id v1mr25755527ics.32.1385618270617; Wed, 27 Nov 2013 21:57:50 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.42.130.129 with SMTP id v1mr25755520ics.32.1385618270367; Wed, 27 Nov 2013 21:57:50 -0800 (PST) Received: by 10.64.102.163 with HTTP; Wed, 27 Nov 2013 21:57:50 -0800 (PST) Date: Thu, 28 Nov 2013 16:57:50 +1100 Message-ID: Subject: New Policy: intent has no matching policy set. From: Nicholas May To: "dev@tuscany.apache.org" Content-Type: multipart/alternative; boundary=90e6ba212199ccbe0c04ec366462 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba212199ccbe0c04ec366462 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm try to create a new policy. but I get an exception when using 'requires' in the composite file (see 'webservice.composite' - line 8a), but not when using 'policySets' (line 8b). The node is started with the command: node = TuscanyRuntime.runComposite(composite, "target/classes"); 1) Why is it not finding the policySet defined in the definitions file? Also, I'm having difficulty in understanding how the various classes (policy, processor, provider, interceptor, builder, and factories) interact with each other and with the tuscany runtime. 2) Is there an overview of the policy lifecycle in Tuscany SCA 2.0? Cheers, Nick May. PhD Candidate School of Computer Science & Information Technology RMIT University Melbourne, Australia. email: nicholas.may@rmit.edu.au ps. find below a dump of relevant data. ****************** *** error message: ****************** -------------------- start message -------------------- Nov 28, 2013 11:29:15 AM org.apache.tuscany.sca.builder.impl.CompositePolicyBuilderImpl [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] (IntentNotSatisfiedAtBuild) SEVERE: The intent {http://tuscany.apache.org/xmlns/sca/1.1}utilityassociated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set -------------------- end message -------------------- *************************** *** 'webservice.composite': *************************** -------------------- start file -------------------- 1 5 6 7 10 11 12 13 14 15 16 17 Hello, 18 19 -------------------- end file -------------------- ***************************************************** *** files in 'src/main/resources/META-INF/services/'; ***************************************************** *** 'org.apache.tuscany.sca.assembly.builder.PolicyBuilder'; -------------------- start file -------------------- org.walroz.wsr.policy.utility.UtilityPolicyBuilderImpl;qname= http://tuscany.apache.org/xmlns/sca/1.1#utility -------------------- end file -------------------- *** 'org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor'; -------------------- start file -------------------- org.walroz.wsr.policy.utility.UtilityPolicyProcessorImpl;qname= http://tuscany.apache.org/xmlns/sca/1.1#utilityPolicy,model=org.walroz.wsr.policy.utility.UtilityPolicy -------------------- end file -------------------- *** 'org.apache.tuscany.sca.provider.PolicyProviderFactory'; -------------------- start file -------------------- org.walroz.wsr.policy.utility.provider.UtilityPolicyProviderFactoryImpl;model=org.walroz.wsr.policy.utility.UtilityPolicy -------------------- end file -------------------- *** 'org.apache.tuscany.defintions.xml.Definitions'; -------------------- start file -------------------- definitions.xml -------------------- end file -------------------- **************************************** *** 'src/main/resources/definition.xml': **************************************** -------------------- start file -------------------- 1 2 3 7 8 9 10 11 Calculate the utility function for the component. 12 13 14 15 16 19 20 21 22 -------------------- end file -------------------- *********************************************************** *** debug output from test setup() with line 8a (requires): *********************************************************** -------------------- start file -------------------- WebServiceTestCase.setUp() start! 1 2013-11-28 16:18:49,224 DEBUG WebServiceTestCase:log - .setUp() start! Nov 28, 2013 4:18:49 PM org.apache.tuscany.sca.impl.NodeImpl INFO: domain: default 2 2013-11-28 16:18:49,952 DEBUG UtilityPolicyProcessorImpl: - policy processor constructed! 3 2013-11-28 16:18:49,952 DEBUG UtilityPolicyProcessorImpl:read - start! 4 2013-11-28 16:18:49,953 DEBUG UtilityPolicyImpl: - policy constructed! 5 2013-11-28 16:18:49,953 DEBUG UtilityPolicyProcessorImpl:read - policy returned = utilityPolicy [configProperty=null] Nov 28, 2013 4:18:50 PM org.apache.tuscany.sca.impl.NodeImpl installContribution INFO: installContribution: webservice Nov 28, 2013 4:18:50 PM org.apache.tuscany.sca.builder.impl.CompositePolicyBuilderImpl [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] (IntentNotSatisfiedAtBuild) SEVERE: The intent {http://tuscany.apache.org/xmlns/sca/1.1}utilityassociated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set WebServiceTestCase.setUp() failed with: org.apache.tuscany.sca.monitor.ValidationException: [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] - The intent { http://tuscany.apache.org/xmlns/sca/1.1}utility associated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set java.lang.RuntimeException: org.apache.tuscany.sca.monitor.ValidationException: [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] - The intent { http://tuscany.apache.org/xmlns/sca/1.1}utility associated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set 6 2013-11-28 16:18:50,384 DEBUG WebServiceTestCase:log - .setUp() failed with: org.apache.tuscany.sca.monitor.ValidationException: [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] - The intent { http://tuscany.apache.org/xmlns/sca/1.1}utility associated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set at org.apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:136) at org.apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:100) at WebServiceTestCase.setUp(WebServiceTestCase.java:51) 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.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) 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.runners.ParentRunner.run(ParentRunner.java:236) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: org.apache.tuscany.sca.monitor.ValidationException: [Composite: { http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComponent] - The intent { http://tuscany.apache.org/xmlns/sca/1.1}utility associated with policy subject { http://docs.oasis-open.org/ns/opencsa/sca/200912}implementation.java(class=org.walroz.wsr.webservice.ProviderImpl) has no matching policy set at org.apache.tuscany.sca.monitor.Monitor.analyzeProblems(Monitor.java:356) at org.apache.tuscany.sca.impl.DeployedComposite.build(DeployedComposite.java:105) at org.apache.tuscany.sca.impl.DeployedComposite.(DeployedComposite.java:81) at org.apache.tuscany.sca.impl.NodeImpl.startComposite(NodeImpl.java:383) at org.apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:127) ... 25 more WebServiceTestCase.setUp() end! 7 2013-11-28 16:18:50,384 DEBUG WebServiceTestCase:log - .setUp() end! -------------------- end file -------------------- **************************************************************************** *** debug output from test setup() & testInvoke() with line 8b (policySets): **************************************************************************** -------------------- start file -------------------- WebServiceTestCase.setUp() start! 1 2013-11-28 16:22:46,801 DEBUG WebServiceTestCase:log - .setUp() start! Nov 28, 2013 4:22:46 PM org.apache.tuscany.sca.impl.NodeImpl INFO: domain: default 2 2013-11-28 16:22:47,534 DEBUG UtilityPolicyProcessorImpl: - policy processor constructed! 3 2013-11-28 16:22:47,535 DEBUG UtilityPolicyProcessorImpl:read - start! 4 2013-11-28 16:22:47,536 DEBUG UtilityPolicyImpl: - policy constructed! 5 2013-11-28 16:22:47,536 DEBUG UtilityPolicyProcessorImpl:read - policy returned = utilityPolicy [configProperty=null] Nov 28, 2013 4:22:47 PM org.apache.tuscany.sca.impl.NodeImpl installContribution INFO: installContribution: webservice 6 2013-11-28 16:22:48,050 DEBUG UtilityPolicyProviderFactoryImpl: - policy provider factory constructed! 7 2013-11-28 16:22:48,051 DEBUG UtilityImplementationPolicyProviderImpl: - policy provider [implementation] constructed! 8 2013-11-28 16:22:48,052 DEBUG UtilityPolicyProviderFactoryImpl: - policy provider factory constructed! 9 2013-11-28 16:22:48,052 DEBUG UtilityImplementationPolicyProviderImpl: - policy provider [implementation] constructed! 2013-11-28 16:22:48.221:INFO::Logging to STDERR via org.mortbay.log.StdErrLog 10 2013-11-28 16:22:48,231 DEBUG UtilityImplementationPolicyProviderImpl: - policy provider [implementation] constructed! 11 2013-11-28 16:22:48,231 DEBUG UtilityImplementationPolicyProviderImpl: - policy provider [implementation] constructed! 12 2013-11-28 16:22:48,238 DEBUG UtilityServicePolicyProviderImpl: - policy provider [service] constructed! 13 2013-11-28 16:22:48,239 DEBUG UtilityServicePolicyProviderImpl: - policy provider [service] constructed! Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.JettyLogger info INFO: jetty-6.1.26 Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.JettyLogger info INFO: Started SelectChannelConnector@0.0.0.0:8080 Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.JettyServer addServletMapping INFO: Added Servlet mapping: http://131.170.134.3:8080/ProviderComponent/Provider Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl addEndpoint INFO: Add endpoint - binding.ws - http://131.170.134.3:8080/ProviderComponent/Provider 14 2013-11-28 16:22:48,413 DEBUG UtilityServicePolicyProviderImpl: - policy provider [service] constructed! 15 2013-11-28 16:22:48,414 DEBUG UtilityServicePolicyProviderImpl: - policy provider [service] constructed! Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.core.assembly.impl.DomainRegistryImpl addEndpoint INFO: Add endpoint - binding.sca - Replica1/Replica Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.impl.NodeImpl startComposite INFO: startComposite: webservice/webservice.composite WebServiceTestCase.setUp() end! 16 2013-11-28 16:22:48,414 DEBUG WebServiceTestCase:log - .setUp() end! WebServiceTestCase.testInvoke() start! 17 2013-11-28 16:22:48,414 DEBUG WebServiceTestCase:log - .testInvoke() start! 18 2013-11-28 16:22:48,429 DEBUG UtilityReferencePolicyProviderImpl: - policy provider [reference] constructed for endpointreference = (@1224884654)EndpointReference: URI = ProviderComponent#reference-binding($self$.Provider/Provider) WIRED_TARGET_FOUND_AND_MATCHED Target = (@783943498)Endpoint: URI = ProviderComponent#service-binding(Provider/Provider) 19 2013-11-28 16:22:48,429 DEBUG UtilityReferencePolicyProviderImpl: - policy provider [reference] constructed for endpointreference = (@1224884654)EndpointReference: URI = ProviderComponent#reference-binding($self$.Provider/Provider) WIRED_TARGET_FOUND_AND_MATCHED Target = (@783943498)Endpoint: URI = ProviderComponent#service-binding(Provider/Provider) Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.extensibility.ServiceDiscovery removeDuplicateDeclarations WARNING: Duplicate service declaration is detected: Location: jar:file:/Users/nmay/.m2/repository/org/apache/tuscany/sca/tuscany-base-runtime/2.0/tuscany-base-runtime-2.0.jar!/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessor ClassLoader: sun.misc.Launcher$AppClassLoader@558fe7c3 Attributes: {class=org.apache.tuscany.sca.core.databinding.wire.DataBindingRuntimeWireProcessor} <-> Location: jar:file:/Users/nmay/.m2/repository/org/apache/tuscany/sca/tuscany-core-databinding/2.0/tuscany-core-databinding-2.0.jar!/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWireProcessor ClassLoader: sun.misc.Launcher$AppClassLoader@558fe7c3 Attributes: {class=org.apache.tuscany.sca.core.databinding.wire.DataBindingRuntimeWireProcessor} 20 2013-11-28 16:22:48,603 DEBUG UtilityReferencePolicyProviderImpl: - policy provider [reference] constructed for endpointreference = (@886018906)EndpointReference: URI = ProviderComponent#reference-binding(replica/Replica) WIRED_TARGET_FOUND_AND_MATCHED Target = (@2016531938)Endpoint: URI = Replica1#service-binding(Replica/Replica) 21 2013-11-28 16:22:48,603 DEBUG UtilityReferencePolicyProviderImpl: - policy provider [reference] constructed for endpointreference = (@886018906)EndpointReference: URI = ProviderComponent#reference-binding(replica/Replica) WIRED_TARGET_FOUND_AND_MATCHED Target = (@2016531938)Endpoint: URI = Replica1#service-binding(Replica/Replica) WebServiceTestCase.testInvoke() end! 22 2013-11-28 16:22:48,620 DEBUG WebServiceTestCase:log - .testInvoke() end! -------------------- end file -------------------- --90e6ba212199ccbe0c04ec366462 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

I'm try to create a new policy. but= I get an exception when using 'requires' in the composite file (se= e 'webservice.composite' - line 8a), but not when using 'policy= Sets' (line 8b). The node is started with the command: node =3D Tuscany= Runtime.runComposite(composite, "target/classes");

1) Why is it not finding the po= licySet defined in the definitions file?=A0

Also, I'm having difficulty in understanding how the = various classes (policy, processor, provider, interceptor, builder, and fac= tories) interact with each other and with the tuscany runtime.

2) Is there an overview of the = policy lifecycle in Tuscany SCA 2.0?=A0

Cheers,

Nick= May.

PhD Candidate
School of Computer Science & Information Technology
RMIT University
Melbourne, Australia.
<= div dir=3D"ltr"> email: nicholas.may@rmit.edu.au=

ps. find below a dump= of relevant data.

*******= ***********
*** error message:=A0
**************= ****
-------------------- start message -------------= -------
Nov 28, 2013 11:29:15 AM org.apache.tuscany.s= ca.builder.impl.CompositePolicyBuilderImpl [Composite: {http://docs.oasis-open.org/ns/ope= ncsa/sca/200912}, Component: ProviderComponent] (IntentNotSatisfiedAtBu= ild)
SEVERE: The intent {http://tuscany.apache.org/xmlns/sca/1.1}utility a= ssociated with policy subject {http://docs.oasis-open.org/ns/opencsa/= sca/200912}implementation.java (class=3Dorg.walroz.wsr.webservice.Provi= derImpl) has no matching policy set
-------------------- end message --------------------


***= ************************
*** 'webservice.composit= e':
***************************
--------= ------------ start file --------------------
=A01 <= ;composite name=3D"webservice"=A0
=A02 =A0 = =A0 =A0 =A0 =A0 =A0xmlns=3D"http://docs.oasis-open.org/ns/opencsa/sca/200912&quo= t;=A0
=A03 =A0 =A0 =A0 =A0 =A0 =A0xmlns:tuscany=3D"http://tuscany.apache.org/xmln= s/sca/1.1"=A0
=A04 =A0 =A0 =A0 =A0 =A0 =A0ta= rgetNamespace=3D"h= ttp://tuscany.apache.org/xmlns/sca/1.1">
=A05 =A0
=A06 =A0 =A0<component name=3D"ProviderComp= onent">
=A07 =A0 =A0 =A0 <implementation.j= ava class=3D"org.walroz.wsr.webservice.ProviderImpl"
=A08a =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = requires=3D"tuscany:utility" =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 **** FAILS
=A08b =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 policySets=3D"tuscany:utilityPolicySet" = =A0 =A0 =A0 =A0 =A0 =A0**** WORKS
=A09 /&= gt;
10 =A0 =A0 =A0 <service name=3D"Provider&= quot;><binding.ws/></service= >
11 =A0 =A0 =A0 <reference name=3D"replica" target=3D"Repl= ica1/Replica"/>
12 =A0 =A0</component><= /div>
13
14 =A0 =A0<component name= =3D"Replica1">
15 =A0 =A0 =A0 <implementation.java class=3D"org.w= alroz.wsr.webservice.ReplicaImpl"/>
16 =A0 = =A0 =A0 <service name=3D"Replica"/>
1= 7 =A0 =A0 =A0 <property name=3D"message">Hello,</propert= y>
18 =A0 =A0</component>
19 <= /composite>
-------------------- end file --------= ------------


*****************************************************
*** files in 'src/main/resources/META-INF/services/';
*****************************************************
*** 'org.apache.tuscany.sca.assembly.builder.PolicyBuilder';
<= div dir=3D"ltr">-------------------- start file --------------------
<= div dir=3D"ltr">org.walroz.wsr.policy.utility.UtilityPolicyBuilderImpl;qnam= e=3Dhttp://tusc= any.apache.org/xmlns/sca/1.1#utility
-------------------- end file --------------------

*** 'org.apache.tuscany.sca.c= ontribution.processor.StAXArtifactProcessor';
---= ----------------- start file --------------------
-------------------- end file --------------------

*** 'org.apache.tuscany.sca.p= rovider.PolicyProviderFactory';
-----------------= --- start file --------------------
org.walroz.wsr.policy.utility.provider.UtilityPolicyProvid= erFactoryImpl;model=3Dorg.walroz.wsr.policy.utility.UtilityPolicy
-------------------- end file --------------------

*** 'org.apache.tuscany.defintions.xml.Defin= itions';
-------------------- start file --------= ------------
definitions.xml
--= ------------------ end file --------------------


****= ************************************
*** 'src/mai= n/resources/definition.xml':
********************= ********************
-------------------- start file --------------------
=
=A01 <?xml version=3D"1.0" encoding=3D"A= SCII"?>=A0
=A02=A0
=A04 =A0 =A0 =A0 =A0 =A0 =A0 =A0xmlns:sca=3D"http://docs.oasis-ope= n.org/ns/opencsa/sca/200912"
=A05 =A0 =A0 = =A0 =A0 =A0 =A0 =A0xmlns:tuscany=3D"http://tuscany.apache.org/xmlns/sca/1.1"=A0
=A06 =A0 =A0 =A0 =A0 =A0 =A0 =A0targetNamespace=3D"http://tuscany.apache.org= /xmlns/sca/1.1">
=A07
=A08 =A0 =A0<!-- Policy Intents Defined by the SCA Runtime -->
=A09 =A0 =A0<intent name=3D"utility" constrai= ns=3D"sca:implementation">
10 =A0 =A0 = =A0 <description>
11 =A0 =A0 =A0 =A0 =A0Calcula= te the utility function for the component.
12 =A0 =A0 =A0 </description>
= 13 =A0 =A0</intent>
14=A0
15 =A0 =A0<!-- Policyset Defined by the SCA Runtime -->
16 =A0 =A0<policySet name=3D"utilityPolicySet"=A0
17 =A0 =A0 =A0 =A0 =A0 =A0 =A0 provides=3D"tuscany:ut= ility"
18 =A0 =A0 =A0 =A0 =A0 =A0 =A0 appliesTo= =3D"sca:implementation">
19 =A0 =A0 =A0 = <tuscany:utilityPolicy name=3D"utilityPolicy"/>
20 =A0 =A0</policySet>
21
22 </definitions>
-----------= --------- end file --------------------


************************************************= ***********
*** debug output from test setup() with l= ine 8a (requires):
**********************************= *************************
-------------------- start file --------------------
=
WebServiceTestCase.setUp() start!
1 = 2013-11-28 16:18:49,224 DEBUG WebServiceTestCase:log - .setUp() start!
Nov 28, 2013 4:18:49 PM org.apache.tuscany.sca.impl.NodeImpl <init>
INFO: domain: default
2 2013-11-= 28 16:18:49,952 DEBUG UtilityPolicyProcessorImpl:<init> - =A0policy p= rocessor constructed!
3 2013-11-28 16:18:49,952 DEBUG UtilityPolicyProcessorImpl= :read - =A0start!
4 2013-11-28 16:18:49,953 DEBUG Uti= lityPolicyImpl:<init> - =A0policy constructed!
= 5 2013-11-28 16:18:49,953 DEBUG UtilityPolicyProcessorImpl:read - =A0policy= returned =3D utilityPolicy [configProperty=3Dnull]
Nov 28, 2013 4:18:50 PM org.apache.tuscany.sca.impl.NodeIm= pl installContribution
INFO: installContribution: web= service
Nov 28, 2013 4:18:50 PM org.apache.tuscany.sc= a.builder.impl.CompositePolicyBuilderImpl [Composite: {http://docs.oasis-open.org/ns/open= csa/sca/200912}, Component: ProviderComponent] (IntentNotSatisfiedAtBui= ld)
SEVERE: The intent {http://tuscany.apache.org/xmlns/sca/1.1}utility a= ssociated with policy subject {http://docs.oasis-open.org/ns/opencsa/= sca/200912}implementation.java (class=3Dorg.walroz.wsr.webservice.Provi= derImpl) has no matching policy set
WebServiceTestCase.setUp() failed with: org.apache.tuscany= .sca.monitor.ValidationException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/= 200912}, Component: ProviderComponent] - The intent {http://tuscany.apache.org/xmlns/s= ca/1.1}utility associated with policy subject {http://docs.oasis-= open.org/ns/opencsa/sca/200912}implementation.java (class=3Dorg.walroz.= wsr.webservice.ProviderImpl) has no matching policy set
java.lang.RuntimeException: org.apache.tuscany.sca.monitor= .ValidationException: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912},= Component: ProviderComponent] - The intent {http://tuscany.apache.org/xmlns/sca/1.1}utili= ty associated with policy subject {http://docs.oasis-open.org/ns/= opencsa/sca/200912}implementation.java (class=3Dorg.walroz.wsr.webservi= ce.ProviderImpl) has no matching policy set
6 2013-11-28 16:18:50,384 DEBUG WebServiceTestCase:log - .= setUp() failed with: org.apache.tuscany.sca.monitor.ValidationException: [C= omposite: {htt= p://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: ProviderComp= onent] - The intent {http://tuscany.apache.org/xmlns/sca/1.1}utility associated with p= olicy subject {http://docs.oasis-open.org/ns/opencsa/sca/200912}imple= mentation.java (class=3Dorg.walroz.wsr.webservice.ProviderImpl) has no = matching policy set
at org.= apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:136)
at or= g.apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:100)
at WebS= erviceTestCase.setUp(WebServiceTestCase.java:51)
at sun.reflect.NativeMethodA= ccessorImpl.invoke0(Native Method)
at sun.= reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
at java= .lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.Frame= workMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.= junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java= :15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe= thod.java:41)
at org.= junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at = org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)=
at org.= junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:7= 6)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunne= r.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.ru= nners.ParentRunner.access$000(ParentRunner.java:42)
at org.= junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.ru= nners.ParentRunner.run(ParentRunner.java:236)
at org.= eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRefere= nce.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestE= xecution.java:38)
at org.= eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunne= r.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTest= s(RemoteTestRunner.java:683)
at org.= eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.jav= a:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteT= estRunner.java:197)
Caused by: org.apache.tuscany.sca.monitor.ValidationExcept= ion: [Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}, Component: Provi= derComponent] - The intent {http://tuscany.apache.org/xmlns/sca/1.1}utility associated= with policy subject {http://docs.oasis-open.org/ns/opencsa/sca/20091= 2}implementation.java (class=3Dorg.walroz.wsr.webservice.ProviderImpl) = has no matching policy set
at org.= apache.tuscany.sca.monitor.Monitor.analyzeProblems(Monitor.java:356)
<= div dir=3D"ltr"> at org.a= pache.tuscany.sca.impl.DeployedComposite.build(DeployedComposite.java:105)<= /div>
at org.= apache.tuscany.sca.impl.DeployedComposite.<init>(DeployedComposite.ja= va:81)
at org.apache.tuscany.sca.impl.NodeImpl.startComposite(NodeImpl.java:3= 83)
at org.= apache.tuscany.sca.TuscanyRuntime.runComposite(TuscanyRuntime.java:127)
... 2= 5 more
WebServiceTestCase.setUp() end!

=
7 2013-11-28 16:18:50,384 DEBUG WebServiceTestCase:l= og - .setUp() end!
-------------------- end file ----= ----------------


****= ************************************************************************
*** debug output from test setup() & testInvoke() w= ith line 8b (policySets): =A0=A0
**********************************************************= ******************
-------------------- start file --= ------------------

WebServ= iceTestCase.setUp() start!
1 2013-11-28 16:22:46,801 DEBUG WebServiceTestCase:log - .= setUp() start!
Nov 28, 2013 4:22:46 PM org.apache.tus= cany.sca.impl.NodeImpl <init>
INFO: domain: def= ault
2 2013-11-28 16:22:47,534 DEBUG UtilityPolicyProcessorImpl= :<init> - =A0policy processor constructed!
3 20= 13-11-28 16:22:47,535 DEBUG UtilityPolicyProcessorImpl:read - =A0start!
4 2013-11-28 16:22:47,536 DEBUG UtilityPolicyImpl:<init> - =A0policy = constructed!
5 2013-11-28 16:22:47,536 DEBUG UtilityP= olicyProcessorImpl:read - =A0policy returned =3D utilityPolicy [configPrope= rty=3Dnull]
Nov 28, 2013 4:22:47 PM org.apache.tuscany.sca.impl.NodeIm= pl installContribution
INFO: installContribution: web= service
6 2013-11-28 16:22:48,050 DEBUG UtilityPolicy= ProviderFactoryImpl:<init> - =A0policy provider factory constructed!<= /div>
7 2013-11-28 16:22:48,051 DEBUG UtilityImplementationPolic= yProviderImpl:<init> - =A0policy provider [implementation] constructe= d!
8 2013-11-28 16:22:48,052 DEBUG UtilityPolicyProvi= derFactoryImpl:<init> - =A0policy provider factory constructed!
9 2013-11-28 16:22:48,052 DEBUG UtilityImplementationPolic= yProviderImpl:<init> - =A0policy provider [implementation] constructe= d!
2013-11-28 16:22:48.221:INFO::Logging to STDERR vi= a org.mortbay.log.StdErrLog
10 2013-11-28 16:22:48,231 DEBUG UtilityImplementationPoli= cyProviderImpl:<init> - =A0policy provider [implementation] construct= ed!
11 2013-11-28 16:22:48,231 DEBUG UtilityImplement= ationPolicyProviderImpl:<init> - =A0policy provider [implementation] = constructed!
12 2013-11-28 16:22:48,238 DEBUG UtilityServicePolicyProvi= derImpl:<init> - =A0policy provider [service] constructed!
13 2013-11-28 16:22:48,239 DEBUG UtilityServicePolicyProviderIm= pl:<init> - =A0policy provider [service] constructed!
Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.= JettyLogger info
INFO: jetty-6.1.26
Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.JettyLogger = info
No= v 28, 2013 4:22:48 PM org.apache.tuscany.sca.http.jetty.JettyServer addServ= letMapping
Nov 28, 2013 4:22:48 PM org.apache.= tuscany.sca.core.assembly.impl.DomainRegistryImpl addEndpoint
14 2013-11-28 16:22:48,413 DEBUG UtilityServicePolicyProviderImpl:<init&= gt; - =A0policy provider [service] constructed!
15 20= 13-11-28 16:22:48,414 DEBUG UtilityServicePolicyProviderImpl:<init> -= =A0policy provider [service] constructed!
Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.core.assemb= ly.impl.DomainRegistryImpl addEndpoint
INFO: Add endp= oint - binding.sca - Replica1/Replica
Nov 28, 2013 4:= 22:48 PM org.apache.tuscany.sca.impl.NodeImpl startComposite
INFO: startComposite: webservice/webservice.composite
WebServiceTestCase.setUp() end!
16 = 2013-11-28 16:22:48,414 DEBUG WebServiceTestCase:log - .setUp() end!
<= div dir=3D"ltr">
WebServiceTestCase.testInvoke() start!
17 2013-11-28 16:22:48,414 DEBUG WebServiceTestCase:log - .tes= tInvoke() start!
18 2013-11-28 16:22:48,429 DEBUG Uti= lityReferencePolicyProviderImpl:<init> - =A0policy provider [referenc= e] constructed for endpointreference =3D (@1224884654)EndpointReference: = =A0URI =3D ProviderComponent#reference-binding($self$.Provider/Provider) WI= RED_TARGET_FOUND_AND_MATCHED Target =3D (@783943498)Endpoint: =A0URI =3D Pr= oviderComponent#service-binding(Provider/Provider)
19 2013-11-28 16:22:48,429 DEBUG UtilityReferencePolicyPro= viderImpl:<init> - =A0policy provider [reference] constructed for end= pointreference =3D (@1224884654)EndpointReference: =A0URI =3D ProviderCompo= nent#reference-binding($self$.Provider/Provider) WIRED_TARGET_FOUND_AND_MAT= CHED Target =3D (@783943498)Endpoint: =A0URI =3D ProviderComponent#service-= binding(Provider/Provider)
Nov 28, 2013 4:22:48 PM org.apache.tuscany.sca.extensibili= ty.ServiceDiscovery removeDuplicateDeclarations
WARNI= NG: Duplicate service declaration is detected: Location: jar:file:/Users/nm= ay/.m2/repository/org/apache/tuscany/sca/tuscany-base-runtime/2.0/tuscany-b= ase-runtime-2.0.jar!/META-INF/services/org.apache.tuscany.sca.runtime.Runti= meWireProcessor ClassLoader: sun.misc.Launcher$AppClassLoader@558fe7c3 Attr= ibutes: {class=3Dorg.apache.tuscany.sca.core.databinding.wire.DataBindingRu= ntimeWireProcessor} <-> Location: jar:file:/Users/nmay/.m2/repository= /org/apache/tuscany/sca/tuscany-core-databinding/2.0/tuscany-core-databindi= ng-2.0.jar!/META-INF/services/org.apache.tuscany.sca.runtime.RuntimeWirePro= cessor ClassLoader: sun.misc.Launcher$AppClassLoader@558fe7c3 Attributes: {= class=3Dorg.apache.tuscany.sca.core.databinding.wire.DataBindingRuntimeWire= Processor}
20 2013-11-28 16:22:48,603 DEBUG UtilityReferencePolicyPro= viderImpl:<init> - =A0policy provider [reference] constructed for end= pointreference =3D (@886018906)EndpointReference: =A0URI =3D ProviderCompon= ent#reference-binding(replica/Replica) WIRED_TARGET_FOUND_AND_MATCHED Targe= t =3D (@2016531938)Endpoint: =A0URI =3D Replica1#service-binding(Replica/Re= plica)
21 2013-11-28 16:22:48,603 DEBUG UtilityReferencePolicyPro= viderImpl:<init> - =A0policy provider [reference] constructed for end= pointreference =3D (@886018906)EndpointReference: =A0URI =3D ProviderCompon= ent#reference-binding(replica/Replica) WIRED_TARGET_FOUND_AND_MATCHED Targe= t =3D (@2016531938)Endpoint: =A0URI =3D Replica1#service-binding(Replica/Re= plica)
WebServiceTestCase.testInvoke() end!
22 2013-11-28 16:22:48,620 DEBUG WebServiceTestCase:log - .testInvoke() en= d!
-------------------- end file --------------------=

--90e6ba212199ccbe0c04ec366462--