[midPoint] Error Extending Assignment

Pavol Mederly mederly at evolveum.com
Tue Nov 15 14:17:44 CET 2016


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 developer
evolveum.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/metaAssignment 
> <http://midpoint.identicum.com/xml/ns/metaAssignment>"
>             
> xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3 
> <http://prism.evolveum.com/xml/ns/public/annotation-3>"
>             
> xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3 
> <http://midpoint.evolveum.com/xml/ns/public/common/common-3>"
>             xmlns:xsd="http://www.w3.org/2001/XMLSchema 
> <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 
> <http://midpoint.evolveum.com/xml/ns/public/common/common-3%7DmetaRelation> 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 
> <http://midpoint.identicum.com/xml/ns/metaAssignment%7DAssignmentExtensionType%5B0,1%5D,dyn,RAM,runtime%29while> 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 <mailto:mmarchese at identicum.com>
> www.identicum.com <http://www.identicum.com>
>
>
> _______________________________________________
> 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/20161115/d481a063/attachment.htm>


More information about the midPoint mailing list