[midPoint] Error Extending Assignment

Martin Marchese mmarchese at identicum.com
Tue Nov 15 14:10:10 CET 2016


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/
metaAssignment"
            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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161115/7ade1b83/attachment.htm>


More information about the midPoint mailing list