<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Hi Dmitry,<div><br></div><div>do you checked for example this sample?</div><div><a href="https://github.com/Evolveum/midpoint/blob/master/samples/schema/extension-samples.xsd" target="_blank">https://github.com/Evolveum/<wbr>midpoint/blob/master/samples/<wbr>schema/extension-samples.xsd</a><br></div><div><br></div><div>best regards,</div><div><br></div><div>Gustav</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5">2017-02-22 18:49 GMT+01:00 Dmitriy Berezkin <span dir="ltr"><<a href="mailto:berezkin.dmitriy@gmail.com" target="_blank">berezkin.dmitriy@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5">
<div>
<div name="messageBodySection">Hi!<br></div>
<div name="messageReplySection"><br>
Could you tell me how I can extend UserType with complexType object?<br>
<br>
I tried to add <xsd:complexType> under <xsd:sequence> of my custom xsd but got error:<br>
<blockquote type="cite" style="margin:5px;padding-left:10px;border-left:thin solid rgb(26,188,156)">
<div name="messageBodySection">
<div>
<div>org.springframework.beans.fact<wbr>ory.BeanCreationException: Error creating bean with name 'repositoryFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.fact<wbr>ory.BeanCreationException: Could not autowire field: private <a href="http://com.evolveum.midpoint.prism.Pr">com.evolveum.midpoint.prism.Pr</a><wbr>ismContext com.evolveum.midpoint.init.Rep<wbr>ositoryFactory.prismContext; nested exception is org.springframework.beans.fact<wbr>ory.BeanCreationException: Error creating bean with name 'prismContext' defined in class path resource [ctx-configuration.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.Bean<wbr>InstantiationException: Failed to instantiate [com.evolveum.midpoint.prism.P<wbr>rismContext]: Factory method 'createInitializedPrismContext<wbr>' threw exception; nested exception is com.evolveum.midpoint.util.exc<wbr>eption.SchemaException: XML error during XSD schema parsing: <b>Unexpected <xsd:complexType> appears at line 65 column 42(embedded exception null)</b> in file C:\midpoint\schema\test1.xsd</div>
</div>
</div>
</blockquote>
<br>
Do you have any example of using complexType attribute with UserExtensionType?<br>
<br>
---<br>
<div name="messageSignatureSection">
<div>Dmitry</div>
</div>
</div>
</div>
<br></div></div>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
<br></blockquote></div><span class="gmail-HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_8526714387436473393gmail_signature">s pozdravom<div><br></div><div>Gustáv Pálos</div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Gustáv Pálos</div><div>Identity Engineer</div><a href="http://evolveum.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">evolveum.com</a><br></div></div>
</div></div>