<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Nitin,<br>
    <br>
    I've just uploaded your XML to my midPoint 2.2.1 successfully. No
    validation errors. This is the only 2.x based version I have handy.<br>
    <br>
    I can't see any obvious error in your XML file; maybe someone from
    this list will have more luck.<br>
    <br>
    I'd recommend to upgrade your midPoint anyway (or install another
    instance - 2.2.1 and try it there).<br>
    <br>
    p.s. as of schema being included in some LDAP samples - there is
    *-no-extension* ldap resource sample in our samples which does not
    use any custom schema extension.<br>
    <br>
    p.s.2  you can remove <schema>..</schema> before
    importing to force midPoint fetch schema upon first access to that
    resource.<br>
    <br>
    Regards,<br>
    Ivan<br>
    <br>
    <div class="moz-cite-prefix">On 04/09/2014 04:20 PM, Nitin G. Prabhu
      wrote:<br>
    </div>
    <blockquote
cite="mid:305192DBBFDF8F41AF7879DE170FDEB004F300C72C@IND-MHP1MCL001.mastek.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:24.0pt;
        font-family:"Times New Roman","serif";
        color:windowtext;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.messages-details-bold
        {mso-style-name:messages-details-bold;}
span.message-info
        {mso-style-name:message-info;}
span.errorstack
        {mso-style-name:errorstack;}
span.showstacktext
        {mso-style-name:showstacktext;}
span.EmailStyle27
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle29
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle30
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle31
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-weight:bold;}
span.delimiter
        {mso-style-name:delimiter;}
span.last
        {mso-style-name:last;}
span.topmenulabel
        {mso-style-name:topmenulabel;}
span.description
        {mso-style-name:description;}
span.bottommenulabel
        {mso-style-name:bottommenulabel;}
span.collapseall
        {mso-style-name:collapseall;}
span.expandall
        {mso-style-name:expandall;}
span.z-TopofFormChar
        {mso-style-name:"z-Top of Form Char";
        mso-style-priority:99;
        mso-style-link:"z-Top of Form";
        font-family:"Arial","sans-serif";
        display:none;}
span.z-BottomofFormChar
        {mso-style-name:"z-Bottom of Form Char";
        mso-style-priority:99;
        mso-style-link:"z-Bottom of Form";
        font-family:"Arial","sans-serif";
        display:none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:26564172;
        mso-list-template-ids:-721749104;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1011689633;
        mso-list-template-ids:-1070801538;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2
        {mso-list-id:1409494941;
        mso-list-template-ids:-1771917528;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l2:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:"Courier New";
        mso-bidi-font-family:"Times New Roman";}
@list l2:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level5
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level8
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l2:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Hi,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I am trying to
            import attached resource xml file into midpoint but I am
            getting below error.I am unable to understand why I am
            getting the error is that I have missed any configuration.I
            am using midpoint version 2.2<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <ul type="disc">
          <li class="MsoNormal"
            style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
            level1 lfo3;background:#FFC2AE"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman","serif";mso-fareast-language:EN-GB">Validation
              error: cvc-complex-type.2.4.a: Invalid content was found
              starting with element 'resource'. One of
              '{<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a>:object}'
              is expected.: Validation error: cvc-complex-type.2.4.a:
              Invalid content was found starting with element
              'resource'. One of
              '{<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a>:object}'
              is expected.<o:p></o:p></span></li>
        </ul>
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:36.0pt;background:#FFC2AE"><span
            style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:windowtext;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
        <ul type="disc">
          <ul type="circle">
            <li class="MsoNormal"
              style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
              level2 lfo3;background:#FFC2AE"><span
                style="font-size:12.0pt;font-family:"Times New
                Roman","serif";mso-fareast-language:EN-GB">Save
                resource (Gui) <o:p></o:p></span></li>
            <li class="MsoNormal"
              style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
              level2 lfo3"><span
                style="font-size:12.0pt;font-family:"Times New
                Roman","serif";mso-fareast-language:EN-GB">Collapse
                all Expand all Export to XML <o:p></o:p></span></li>
            <li class="MsoNormal"
              style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
              level2 lfo3"><span
                style="font-size:12.0pt;font-family:"Times New
                Roman","serif";mso-fareast-language:EN-GB">Schema
                validation <o:p></o:p></span></li>
            <ul type="square">
              <li class="MsoNormal"
                style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
                level3 lfo3"><span
                  style="font-size:12.0pt;font-family:"Times New
                  Roman","serif";mso-fareast-language:EN-GB">Validation
                  error: cvc-complex-type.2.4.a: Invalid content was
                  found starting with element 'resource'. One of
                  '{<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a>:object}'
                  is expected. <o:p></o:p></span></li>
              <li class="MsoNormal"
                style="color:windowtext;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0
                level3 lfo3"><u><span
                    style="font-size:12.0pt;font-family:"Times New
Roman","serif";mso-fareast-language:EN-GB">Cause:</span></u><span
                  style="font-size:12.0pt;font-family:"Times New
                  Roman","serif";mso-fareast-language:EN-GB">
                  <o:p></o:p></span></li>
            </ul>
          </ul>
        </ul>
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"><span
            style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:windowtext;mso-fareast-language:EN-GB">cvc-complex-type.2.4.a:
            Invalid content was found starting with element 'resource'.
            One of
            '{<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">"http://midpoint.evolveum.com/xml/ns/public/common/common-2a"</a>:object}'
            is expected.<o:p></o:p></span></p>
        <div
          style="mso-element:para-border-div;border:none;border-bottom:double
          windowtext 2.25pt;padding:0cm 0cm 1.0pt 0cm">
          <p class="MsoNormal" style="border:none;padding:0cm"><span
              style="color:#1F497D"><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:windowtext;mso-fareast-language:EN-GB"><?xml version='1.0' encoding='UTF-8' standalone='yes'?><br>
<c:operationResult xmlns:icfs='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2</a>' xmlns:icfc='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2</a>' xmlns:t='<a class="moz-txt-link-freetext" href="http://prism.evolveum.com/xml/ns/public/types-2">http://prism.evolveum.com/xml/ns/public/types-2</a>' xmlns:c='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a">http://midpoint.evolveum.com/xml/ns/public/common/common-2a</a>' xmlns:cap='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2">http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2</a>' xmlns:q='<a class="moz-txt-link-f
reetext" href="http://prism.evolveum.com/xml/ns/public/query-2">http://prism.evolveum.com/xml/ns/public/query-2</a>' xmlns:apti='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-2">http://midpoint.evolveum.com/xml/ns/public/common/api-types-2</a>' xmlns:m='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/model/model-context-2">http://midpoint.evolveum.com/xml/ns/public/model/model-context-2</a>' xmlns:wfcf='<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2">http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2</a>' xmlns:ds='<a class="moz-txt-link-freetext" href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>' xmlns:enc='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/04/xmlenc#">http://www.w3.org/2001/04/xmlenc#</a>'><br>
    <c:operation>com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.saveResource</c:operation><br>
                <c:status>fatal_error</c:status><br>
                <c:token>1000000000000000470</c:token><br>
    <c:message>Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{'<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object">http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object</a>}' is expected.: Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{'<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object">http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object</a>}' is expected.</c:message><br>
                <c:partialResults><br>
        <c:operation>com.evolveum.midpoint.common.validator.Validator.validateSchema</c:operation><br>
                    <c:status>fatal_error</c:status><br>
                    <c:token>1000000000000000471</c:token><br>
        <c:message>Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{'<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object">http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object</a>}' is expected.</c:message><br>
        <c:details>org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{'<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object">http://midpoint.evolveum.com/xml/ns/public/common/common-2a':object</a>}' is expected.<br>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)<br>
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)<br>
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)<br>
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(Unknown Source)<br>
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)<br>
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)<br>
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(Unknown Source)<br>
com.evolveum.midpoint.common.validator.Validator.validateSchema(Validator.java:446)<br>
com.evolveum.midpoint.common.validator.Validator.validateObjectInternal(Validator.java:348)<br>
com.evolveum.midpoint.common.validator.Validator.validateObject(Validator.java:336)<br>
com.evolveum.midpoint.web.page.PageBase.validateObject(PageBase.java:490)<br>
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.savePerformed(PageResourceEdit.java:205)<br>
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit.access$5(PageResourceEdit.java:193)<br>
com.evolveum.midpoint.web.page.admin.resources.PageResourceEdit$6.onSubmit(PageResourceEdit.java:157)<br>
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:116)<br>
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$1.onSubmit(AjaxFormSubmitBehavior.java:179)<br>
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1235)<br>
org.apache.wicket.markup.html.form.Form.process(Form.java:921)<br>
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:767)<br>
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:156)<br>
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:131)<br>
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:603)<br>
sun.reflect.GeneratedMethodAccessor529.invoke(Unknown Source)<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>
            java.lang.reflect.Method.invoke(Unknown Source)<br>
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)<br>
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)<br>
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247)<br>
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)<br>
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)<br>
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)<br>
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)<br>
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)<br>
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)<br>
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)<br>
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)<br>
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)<br>
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)<br>
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)<br>
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)<br>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)<br>
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)<br>
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br>
com.evolveum.midpoint.web.util.MidPointProfilingServletFilter.doFilter_aroundBody0(MidPointProfilingServletFilter.java:69)<br>
com.evolveum.midpoint.web.util.MidPointProfilingServletFilter$AjcClosure1.run(MidPointProfilingServletFilter.java:1)<br>
org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)<br>
com.evolveum.midpoint.util.aspect.MidpointAspect.wrapSubsystem(MidpointAspect.java:169)<br>
com.evolveum.midpoint.util.aspect.MidpointAspect.ajc$inlineAccessMethod$com_evolveum_midpoint_util_aspect_MidpointAspect$com_evolveum_midpoint_util_aspect_MidpointAspect$wrapSubsystem(MidpointAspect.java:1)<br>
com.evolveum.midpoint.util.aspect.MidpointAspect.processWebNdc(MidpointAspect.java:84)<br>
com.evolveum.midpoint.web.util.MidPointProfilingServletFilter.doFilter(MidPointProfilingServletFilter.java:65)<br>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)<br>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)<br>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)<br>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)<br>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)<br>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)<br>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)<br>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)<br>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)<br>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)<br>
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)<br>
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)<br>
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)<br>
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)<br>
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)<br>
            java.lang.Thread.run(Unknown Source)<br>
            </c:details><br>
                </c:partialResults><br>
            </c:operationResult><br>
            <br>
          </span><b><span
              style="font-size:24.0pt;font-family:"Times New
Roman","serif";color:windowtext;mso-fareast-language:EN-GB"><o:p></o:p></span></b></p>
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:108.0pt"><span
            style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:windowtext;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Nitin<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-GB"
                lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>
                [<a class="moz-txt-link-freetext" href="mailto:midpoint-bounces@lists.evolveum.com">mailto:midpoint-bounces@lists.evolveum.com</a>] <b>On
                  Behalf Of </b>Radovan Semancik<br>
                <b>Sent:</b> 09 April 2014 08:14<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a><br>
                <b>Subject:</b> Re: [midPoint] Issue while uploading
                resource xml<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">Hi,<br>
            <br>
            On 04/08/2014 09:24 PM, Nitin G. Prabhu wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Thanks a lot<span style="color:#1F497D"> 
            </span>Radovan for your reply .Just had a query how does
            midpoint synchronizes database table I guess it’s the change
            log column which does the work? but wanted to know how it
            works how midpoint identifies whether value in the row has
            changed or whether it is a new row .<o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:EN-GB"><br>
            It is actually the timestamp column. The DatabaseTable
            connector expects that there will be a column with the
            timestamp of last change in the row. MidPoint remembers the
            time of last synchronization and queries all rows that has
            been changed after that.<br>
            <br>
            <br>
            <o:p></o:p></span></p>
        <p class="MsoNormal"> Also do we have connectors for Postgres DB
          instead of Data table.<o:p></o:p></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:EN-GB"><br>
            DatabaseTable is quite universal. It can connect to any
            database for which you have JDBC driver. Therefore it also
            works for PostgreSQL (we are using this a lot).<br>
            <br>
            The special connectors for MySQL, Oracle, DB2 and so on are
            actually designed to manage database *administrator*
            accounts. And we do not have connector for PostreSQL for
            this purpose because as far as I know the easiest way to
            manage PostreSQL dabase is to use users from operating
            system or other identity repository. And we have connectors
            for Windows (Active Directory), Solaris and Linux.<br>
            <br>
            <br>
            <o:p></o:p></span></p>
        <p class="MsoNormal"> If I have say 5 tables to synchronize then
          will I need to configure 5 different xml files if I use
          datatable connector or can I specify it in only one resource
          xml file<o:p></o:p></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:EN-GB"><br>
            You can actually use ScriptedSQL connector for that. This
            connector is using pieces of JavaScript code to construct
            actual SQL queries. Therefore this one should work for your
            case. But a word of warning here: this connector is not yet
            very well tested and also the documentation is a bit thin at
            the moment.<br>
            <br>
            However it should be quite easy for you to write your own
            custom connector in Java. It is also perhaps the most
            professional way and this connector is definitely much more
            reliable from the maintenance point of view. Writing your
            own connector actually means implementing a couple of Java
            methods.<br>
            <br>
            <br>
            <o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre><o:p> </o:p></pre>
        <pre>                                           Radovan Semancik<o:p></o:p></pre>
        <pre>                                          Software Architect<o:p></o:p></pre>
        <pre>                                             evolveum.com<o:p></o:p></pre>
      </div>
      <br>
      <br>
      <table style="color:black" bgcolor="white">
        <tbody>
          <tr>
            <td>MASTEK LTD.<br>
              In the US, we're called MAJESCOMASTEK<br>
              <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
              Opinions expressed in this e-mail are those of the
              individual and not that of Mastek Limited, unless
              specifically indicated to that effect. Mastek Limited does
              not accept any responsibility or liability for it. This
              e-mail and attachments (if any) transmitted with it are
              confidential and/or privileged and solely for the use of
              the intended person or entity to which it is addressed.
              Any review, re-transmission, dissemination or other use of
              or taking of any action in reliance upon this information
              by persons or entities other than the intended recipient
              is prohibited. This e-mail and its attachments have been
              scanned for the presence of computer viruses. It is the
              responsibility of the recipient to run the virus check on
              e-mails and attachments before opening them. If you have
              received this e-mail in error, kindly delete this e-mail
              from desktop and server.<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer
  evolveum.com
  ___________________________________________
           "Idem per idem - semper idem Vix."
</pre>
  </body>
</html>