Thanks Simon, plz look into issue at your convenience.

Meanwhile If you can throw your ideas we can debug in that direction. 

Regards
Raman

-----Original Message-----
From: Simon Nash [mailto:[email protected]] 
Sent: Tuesday, May 25, 2010 2:30 PM
To: [email protected]
Subject: Re: PolicyConfigurationException: The are unfulfilled intents
for binding in reference

Malisetti, Ramanjaneyulu wrote:
> The file I have is definitions.xml, I mistyped in mail. I created JIRA
> issue (https://issues.apache.org/jira/browse/TUSCANY-3569) and
attached
> testcase that I am working with. 
> 
Thanks.  I have downloaded the zip file from the JIRA and I have
reproduced
the problem.  I have some ideas what may be causing the problem but I
won't
be able to investigate further in the Tuscany code until later this
week.

   Simon

> Regards
> Raman
> 
> -----Original Message-----
> From: Simon Nash [mailto:[email protected]] 
> Sent: Tuesday, May 25, 2010 1:37 AM
> To: [email protected]
> Subject: Re: PolicyConfigurationException: The are unfulfilled intents
> for binding in reference
> 
> Malisetti, Ramanjaneyulu wrote:
>> Simon,
>>          Both reference and service are configured with
> "authentication"
>> intent. I have definition.xml in classpath. In fact I have modified
> only
>> the way Node is created, except this all are remains same as is in
>> policy-security-token itest.
>>
>> Here I attached source that I am trying with.
>>
>>
>> Please not that there is NO issue if I create Node by giving
composite
>> file.
>>
>> In our scenario we create Node by passing composite as String. I even
>> tried with new SCAContribution("xxxx","full path to definition.xml"),
> no
>> hopes
>>
> The correct spelling is definitions.xml, not definition.xml.  Perhaps
> this is why it isn't working for you.
> 
> What definition.xml (or definitions.xml) file were you using?  This
> wasn't attached to your last email.
> 
> I'm not able to run the test program that you attached because of a
> reference to a file that I don't have:
>
C:/tusacny16-samples/itest/policy-security-basicauth/resources-ucf.jar
> I thought this test was based on policy-security-token.  Why is there
a
> reference to policy-security-basicauth, and what is resources-ucf.jar?
> 
> The test program also includes a reference to
>  
>
C:/tusacny16-samples/itest/policy-security-basicauth/src/main/resources/
> and I'm not sure why you are including this.
> 
> I'm also rather dubious about the reference to
>   "http://L3AW203:8085/HelloWorldServiceWSComponent";
> in the testWSViaNonSCAClient)( method.  What is L3AW203?
> 
> I think it would be best if you could create a JIRA for this problem
and
> attach a self-contained zip file with the complete contents of the
test
> that you are running.
> 
>    Simon
> 
>> Simon,
>>                 Could you try to run policy-security-token itest with
>> the attached source. BTW, this issue is in SCA 1.6.
>>
>>
>> Regards
>> Raman
>>
>> -----Original Message-----
>> From: Simon Nash [mailto:[email protected]] 
>> Sent: Monday, May 24, 2010 10:05 PM
>> To: [email protected]
>> Subject: Re: PolicyConfigurationException: The are unfulfilled
intents
>> for binding in reference
>>
>> Malisetti, Ramanjaneyulu wrote:
>>> Simon,
>>>         I haven't modified anything except that how to create Node. 
>>>
>> Is there a definitions.xml file in your contribution?  This seems
>> unlikely given that your code is doing
>>    new SCAContribution("","")
>>
>> If you have a reference that is configured with the "authentication"
>> intent, then your contribution must provide a suitable policySet in
>> a definitions.xml file.
>>
>> Did you intend to use a reference with the "authentication" intent?
>>
>>    Simon
>>
>>> Regards
>>> Raman
>>>
>>> -----Original Message-----
>>> From: Simon Nash [mailto:[email protected]] 
>>> Sent: Monday, May 24, 2010 8:29 PM
>>> To: [email protected]
>>> Subject: Re: PolicyConfigurationException: The are unfulfilled
> intents
>>> for binding in reference
>>>
>>> Malisetti, Ramanjaneyulu wrote:
>>>> Hi,
>>>>
>>>>  
>>>>
>>>> If Node is created with composite as a string , I mean something
> like
>>>> below. All policy intents are not recognized. I modified " 
>>>> policy-security-token" itest  to load composite as a string, test
is
> 
>>>> throwing with exception PolicyConfigurationException.
>>>>
>>>>  
>>>>
>>>> *private* *static* String /composite1 = "xxxxx";/
>>>>
>>>>              /scaNodeFactory/ = SCANodeFactory./newInstance/();
>>>>
>>>>             String _contribName1_ = "HelloWorldService" + 
>>>> "-contribution.xml";
>>>>
>>>>                   /node/ = 
>>>> /scaNodeFactory/.createSCANode("HelloWorldService",
>> /composite1/,*new*
>>>> SCAContribution("",""));
>>>>
>>>>                   /node/.start();
>>>>
>>>>  
>>>>
>>>> The following is the exception. Could you help me on avoiding this 
>>>> exception?
>>>>
>>> This message means that there is no policySet in your
definitions.xml
>>> file that fulfils the "authentication" intent.
>>>
>>>    Simon
>>>>  
>>>>
>>>> May 24, 2010 6:33:26 PM org.apache.tuscany.sca.node.impl.NodeImpl
>>> <init>
>>>> INFO: Creating node: HelloWorldService
>>>>
>>>> May 24, 2010 6:33:26 PM org.apache.tuscany.sca.node.impl.NodeImpl
>>> <init>
>>>> INFO: Loading composite: HelloWorldService
>>>>
>>>> May 24, 2010 6:33:27 PM org.apache.tuscany.sca.node.impl.NodeImpl 
>>>> configureNode
>>>>
>>>> INFO: Loading contribution: 
>>>>
>
file:/C:/development/source/tuscany-sca-1.6-src/itest/policy-security-to
>>> ken/
>>>> May 24, 2010 6:33:27 PM 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl
>>>> SEVERE: Policy Related Exception occured due to : 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference - helloworldWS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>> May 24, 2010 6:33:27 PM 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl
>>>> SEVERE: Policy Related Exception occured due to : 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference -
helloworldJMS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>> May 24, 2010 6:33:27 PM 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl
>>>> SEVERE: Policy Related Exception occured due to : 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The following are unfulfilled intents for binding in service - 
>>>> HelloWorldService
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>> May 24, 2010 6:33:27 PM 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl
>>>> SEVERE: Policy Related Exception occured due to : 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The following are unfulfilled intents for binding in service - 
>>>> HelloWorldService
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>> May 24, 2010 6:33:27 PM 
>>>> org.apache.tuscany.sca.assembly.builder.DefaultEndpointBuilder
>>>>
>>>> SEVERE: Policy Related Exception occured due to : 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference - helloworldWS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>> _org.osoa.sca.ServiceRuntimeException_: 
>>>> _org.apache.tuscany.sca.monitor.MonitorRuntimeException_: 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference - helloworldWS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>>       at 
>>>>
>
org.apache.tuscany.sca.node.impl.NodeImpl.analyzeProblems(_NodeImpl.java
>>> :711_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(_NodeImpl.java:6
>>> 34_)
>>>>       at 
>>>>
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(_NodeImpl.java:447_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(_NodeFact
>>> oryImpl.java:52_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.itest.TokenAuthTestCase.init(_TokenAuthTestCase.j
>>> ava:99_)
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native
>> Method_)
>>>>       at 
>>>>
>
sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl.ja
>>> va:39_)
>>>>       at 
>>>>
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAccesso
>>> rImpl.java:25_)
>>>>       at java.lang.reflect.Method.invoke(_Method.java:597_)
>>>>
>>>>       at 
>>>>
>
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(_FrameworkMe
>>> thod.java:44_)
>>>>       at 
>>>>
>
org.junit.internal.runners.model.ReflectiveCallable.run(_ReflectiveCalla
>>> ble.java:15_)
>>>>       at 
>>>>
>
org.junit.runners.model.FrameworkMethod.invokeExplosively(_FrameworkMeth
>>> od.java:41_)
>>>>       at 
>>>>
>
org.junit.internal.runners.statements.RunBefores.evaluate(_RunBefores.ja
>>> va:27_)
>>>>       at 
>>>>
>
org.junit.internal.runners.statements.RunAfters.evaluate(_RunAfters.java
>>> :31_)
>>>>       at
org.junit.runners.ParentRunner.run(_ParentRunner.java:220_)
>>>>
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(_JUnit4Te
>>> stReference.java:46_)
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit.runner.TestExecution.run(_TestExecution.j
>>> ava:38_)
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteT
>>> estRunner.java:467_)
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(_RemoteT
>>> estRunner.java:683_)
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(_RemoteTestRu
>>> nner.java:390_)
>>>>       at 
>>>>
>
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(_RemoteTestR
>>> unner.java:197_)
>>>> Caused by:
_org.apache.tuscany.sca.monitor.MonitorRuntimeException_:
> 
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference - helloworldWS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>>       ... 21 more
>>>>
>>>> Caused by: 
>>>>
>
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationExcepti
>>> on_: 
>>>> The are unfulfilled intents for binding in reference - helloworldWS
>>>>
>>>> Unfulfilled Intents =
>>> [{http://www.osoa.org/xmlns/sca/1.0}authentication]
>>>>       at 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationUtil.det
>>> ermineApplicableDomainPolicySets(_PolicyConfigurationUtil.java:550_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationUtil.det
>>>
ermineApplicableBindingPolicySets(_PolicyConfigurationUtil.java:525_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.compute
>>> Policies(_BaseWireBuilderImpl.java:1064_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositePolicyBuilderImpl.
>>> build(_CompositePolicyBuilderImpl.java:45_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(
>>> _CompositeBuilderImpl.java:241_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.node.impl.RuntimeBootStrapper.buildComposite(_Run
>>> timeBootStrapper.java:255_)
>>>>       at 
>>>>
>
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(_NodeImpl.java:6
>>> 32_)
>>>>       ... 19 more
>>>>
>>>>  
>>>>
>>>>  
>>>>
>>>> Regards
>>>>
>>>> Raman
>>>>
>>>
>>>
>>
> 
> 
> 
> 


Reply via email to