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-token/
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.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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:634_)
at
org.apache.tuscany.sca.node.impl.NodeImpl.<init>(_NodeImpl.java:447_)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANode(_NodeFactoryImpl.java:52_)
at
org.apache.tuscany.sca.itest.TokenAuthTestCase.init(_TokenAuthTestCase.java:99_)
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.ParentRunner.run(_ParentRunner.java:220_)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(_JUnit4TestReference.java:46_)
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.MonitorRuntimeException_:
_org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationException_:
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.PolicyConfigurationException_:
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.determineApplicableDomainPolicySets(_PolicyConfigurationUtil.java:550_)
at
org.apache.tuscany.sca.assembly.builder.impl.PolicyConfigurationUtil.determineApplicableBindingPolicySets(_PolicyConfigurationUtil.java:525_)
at
org.apache.tuscany.sca.assembly.builder.impl.BaseWireBuilderImpl.computePolicies(_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(_RuntimeBootStrapper.java:255_)
at
org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(_NodeImpl.java:632_)
... 19 more
Regards
Raman