[midPoint] Error Extending Assignment

Martin Marchese mmarchese at identicum.com
Wed Nov 16 20:18:00 CET 2016


Thanks Pavol that worked!

*Ing. Martín Marchese*
Identicum S.A.
Jorge Newbery 3226
Tel: +54 (11) 4552-3050
mmarchese at identicum.com
www.identicum.com

On Tue, Nov 15, 2016 at 10:17 AM, Pavol Mederly <mederly at evolveum.com>
wrote:

> Martin,
>
> please check if this is not a problem of namespaces.
>
> I.e. change the namespace of metaRelation element to your value (
> http://midpoint.identicum.com/xml/ns/metaAssignment).
>
> Pavol Mederly
> Software developerevolveum.com
>
> On 15.11.2016 14:10, Martin Marchese wrote:
>
> Hi All,
>
> We created the metaAssignment.xsd file within the home/schema directory
> and restarted tomcat. The xsd file content is the following:
>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <xsd:schema elementFormDefault="qualified"
>             targetNamespace="http://midpoint.identicum.com/xml/ns/metaAs
> signment"
>             xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
>             xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/
> common-3"
>             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>         <xsd:complexType name="AssignmentExtensionType">
>                 <xsd:annotation>
>                         <xsd:appinfo>
>                                 <a:extension ref="c:AssignmentType"/>
>                         </xsd:appinfo>
>                 </xsd:annotation>
>                 <xsd:sequence>
>                         <xsd:element name="metaRelation" type="xsd:string"
>   minOccurs="0" maxOccurs="1" />
>                 </xsd:sequence>
>         </xsd:complexType>
> </xsd:schema>
>
> However, seems like the extension is not being loaded since when we try to
> add the following assignment:
>
>     <assignment>
>         <extension>
>           <metaRelation>STUDENT</metaRelation>
>         </extension>
>         <targetRef oid="fa18702d-7c44-4b73-82fe-5cad153782e5"
> type="OrgType"/>
>     </assignment>
>
> We receive the following error:
>
> Item {http://midpoint.evolveum.com/xml/ns/public/common/common-3}
> metaRelation has no definition (schema present, in container
> PCD:{.../common/common-3}extension {http://midpoint.identicum.com
> /xml/ns/metaAssignment}AssignmentExtensionType[0,1],dyn,RAM,runtime)while parsing
> ( {.../common/common-3}metaRelation => parser ValueParser(DOMe,
> {.../common/common-3}metaRelation: STUDENT
>
> Are we forgetting about something? Is there a way to troubleshoot if the
> schema is being loaded OK?
>
> Thanks in Advance
>
> *Ing. Martín Marchese*
> Identicum S.A.
> Jorge Newbery 3226
> Tel: +54 (11) 4552-3050
> mmarchese at identicum.com
> www.identicum.com
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161116/98419867/attachment.htm>


More information about the midPoint mailing list