AnsweredAssumed Answered

Content model failled when dynamic deploying

Question asked by nabil.malloul on Aug 29, 2017
Latest reply on Aug 31, 2017 by afaust


I have this contentModel file


<?xml version="1.0" encoding="UTF-8"?> <model name="swTl:TresCompletModel" xmlns="">     
    <import uri="" prefix="d"/>                 <import uri="" prefix="cm"/>                  <import uri="" prefix="bpm"/>     </imports>          

<namespace uri="" prefix="swTl"/>       </namespaces>              

   <type name="swTl:debut">                     <parent>bpm:activitiOutcomeTask</parent>                          <properties>                             
              <property name="swTl:dateDebut">                                                            <title>Date de debut de vaccances</title>                                               <type>d:date</type>                                                                                 <mandatory>true</mandatory>        
              <property name="swTl:dateFin">                                                     <title>Date fin de vaccances</title>                                                      <type>d:date</type>                                                        <mandatory>true</mandatory>                              


I tried to dynamically deploy this model, by moving this file into models repository, but when i set the model active property to true i still getting this error in logs:


2017-08-29 18:13:57,528  ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-29] Exception from executeScript: 07290005 Failed to parse model
 org.alfresco.service.cmr.dictionary.DictionaryException: 07290005 Failed to parse model
Caused by: org.jibx.runtime.JiBXException: Expected "{}model" end tag, found "{}model" start tag (line 80, col 61)
    at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(
    at org.alfresco.repo.dictionary.JiBX_defaultM2Model_access.unmarshal()
    at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(
    at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(
    at org.alfresco.repo.dictionary.M2Model.createModel(
    ... 44 more

Is there anybody who did this before ? Thanks for any hlep.