Using ESB wso2 ei6.1.1, I have an addressEndpoint with a security policy 
defined like

<endpoint name="my-EP" xmlns="http://ws.apache.org/ns/synapse";>
  <address format="soap11" statistics="enable" trace="enable" 
uri="https://services-web/taratata";>
    <enableAddressing version="submission"/>
    <enableSec policy="the-policy-LE"/>
  </address>
</endpoint>


"the-policy-LE" is defined into a local localEntry mediator

This works ok.

The problem appears when I put the localEntry in the registry instead of 
locally. At this moment the addressPoint is written

<endpoint name="my-EP" xmlns="http://ws.apache.org/ns/synapse";>
  <address format="soap11" statistics="enable" trace="enable" 
uri="https://services-web/taratata";>
    <enableAddressing version="submission"/>
    <enableSec policy="gov:localEntries/the-policy-LE.xml"/>
  </address>
</endpoint>


After deploying this new carbonnApps I get this error about security policy 
namespace when calling the app

[EI-Core] DEBUG - AbstractRegistry Cached object has expired for key : 
gov:localEntries/the-policy-LE.xml
[EI-Core] DEBUG - Axis2FlexibleMEPClient Setting Timeout for endpoint : 
Endpoint [my-EP], URI : https://services-web/taratata to static timeout value : 
120000
[EI-Core] DEBUG - SynapseCallbackReceiver Callback added. Total callbacks 
waiting for : 1
[EI-Core] DEBUG - WSDoAllSender WSDoAllSender: enter invoke()
[EI-Core] ERROR - Axis2Sender Unexpected error during sending message out
java.lang.RuntimeException: Undefined 'Security policy namespace cannot be 
null.' resource property
    at org.apache.rampart.RampartException.getMessage(RampartException.java:81)
    at org.apache.rampart.RampartException.<init>(RampartException.java:41)
    at org.apache.rampart.RampartException.<init>(RampartException.java:57)


The only thing changed is the place where the localEntry is stored, so I don't 
understand this error.
I can see now on the filesystem that the policy file "the-policy-LE.xml" is 
never read, so I guess the problem is not in its content. Right ? By the way, 
the registry resource seems to be found by the EI-core. So what ??

Any idea of what to do (what namespace to define, which value, where to define 
it... ?).

Thanks Bernard

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to