[midPoint] RE. Missing namespace in object template

Radovan Semancik radovan.semancik at evolveum.com
Tue Oct 29 17:49:14 CET 2013


Hi,

You have hit a very annoying JAXB bug. JAXB libraries do not handle the 
QName values with no namespace prefix correctly in some situations. The 
"type" attribute of object references is one of these situations. We 
were unable to fix the JAXB libraries (any help or advice here is 
greatly appreciated). Fortunatelly there is a simple workaround: specify 
the namespace prefix explicitly. Therefore instead of
<c:resourceRef oid="b8a157a0-b2ba-43f2-a410-872853f10476" 
type="ResourceType"/>
use
<c:resourceRef oid="b8a157a0-b2ba-43f2-a410-872853f10476" 
type="c:ResourceType"/>

-- 

                                            Radovan Semancik
                                           Software Architect
                                              evolveum.com


*
*On 10/29/2013 05:41 PM, Deepak Natarajan wrote:
> I have checked my object template definition and verified that the 
> namespace in question is there :
>
>   
>  <c:mapping*xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a"*
>               
> xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2"
>               xmlns:t="http://prism.evolveum.com/xml/ns/public/types-2"
>               
> xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2"
>               xmlns:q="http://prism.evolveum.com/xml/ns/public/query-2"
>               
> xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2"
>               
> xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-2"
>               
> xmlns:wfcf="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2"
>               
> xmlns:m="http://midpoint.evolveum.com/xml/ns/public/model/model-context-2"
>               xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
>               xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
>       <c:expression>
>          <c:value>
> <c:assignment>
>  <c:construction>
> *<c:resourceRef oid="b8a157a0-b2ba-43f2-a410-872853f10476" 
> type="ResourceType"/>*
> </c:construction>
> </c:assignment>
>             </c:value>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20131029/11c7befd/attachment.htm>


More information about the midPoint mailing list