Hi Bernard,

The path "gov:localEntries/the-policy-LE.xml" implies that you have put
particular the policy.xml file inside* /_system/governance/...* instead of
that location you can use the location  *_system/config/security.*


---------- Forwarded message ----------
From: Bernard Paris <bernard.pa...@uclouvain.be>
Date: Fri, Feb 23, 2018 at 1:42 PM
Subject: Re: [Dev] Error "Security policy namespace cannot be null." policy
is in registry
To: Hasunie Adikari <hasu...@wso2.com>


Hello Hasunie,

Sorry I don't understand the path you gave an which path to replace

Am I to replace policy="gov:localEntries/the-policy-LE.xml"

or the file path into the localEntry  the-policy-LE.xml file
<localEntry key="etnic-policy-LE" src=""file:/Users/. . .">

By the way what should be the new path ? (don't understand [1] meaning)

Thanks for your help, regards from Belgium.
Bernard



Le 22 févr. 2018 à 07:37, Hasunie Adikari <hasu...@wso2.com> a écrit :

Hi Bernard,

Instead of the path where you maintain the policy file, can you try this
registry location[1].
[1] _system/config/security

 For an instance
    conf:security/policy1.xml

Regards
Hasunie


On Wed, Feb 21, 2018 at 2:54 PM, Bernard Paris <bernard.pa...@uclouvain.be>
wrote:

>
> 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
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Hasunie Adikari*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
blog http://hasuniea.blogspot.com | https://medium.com/@Hasunie/
Mobile:+94713095876 <+94%2071%20309%205876>




*Bernard Paris*
*Publication programme d'études - gestion ESB*
Informaticien SGSI/SISG
Service général du système d'information (SGSI)
Place des Sciences, 4
<https://maps.google.com/?q=Place+des+Sciences,+4&entry=gmail&source=g> bte
L6.08.01
1348 Louvain-la-Neuve

Email: bernard.pa...@uclouvain.be <bernard.pa...@uclouvain.be>
Tél. 32 (0)10 47 45 27
https://uclouvain.be/si




-- 
*Hasunie Adikari*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
blog http://hasuniea.blogspot.com | https://medium.com/@Hasunie/
Mobile:+94713095876
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to