动态部署时内容模型失败
Content model failled when dynamic deploying
我在露天模型存储库中有这个 contentModel 文件。
<?xml version="1.0" encoding="UTF-8"?>
<model name="swTl:TresCompletModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
</imports>
<namespaces>
<namespace uri="starxpert.TresCompletModel.fr" prefix="swTl"/>
</namespaces>
<types>
<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>
<property name="swTl:dateFin">
<title>Date fin de vaccances</title>
<type>d:date</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
<model>
我尝试通过将 model active
属性 设置为 true 来动态部署此模型,但我仍然在露天日志中收到此错误:
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 "{http://www.alfresco.org/model/dictionary/1.0}model" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}model" start tag (line 80, col 61)
有没有人以前做过这个?感谢您的帮助。
你的模型不应该以 </model>
结尾,而不是 <model>
吗?
我在露天模型存储库中有这个 contentModel 文件。
<?xml version="1.0" encoding="UTF-8"?>
<model name="swTl:TresCompletModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
</imports>
<namespaces>
<namespace uri="starxpert.TresCompletModel.fr" prefix="swTl"/>
</namespaces>
<types>
<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>
<property name="swTl:dateFin">
<title>Date fin de vaccances</title>
<type>d:date</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
</types>
<model>
我尝试通过将 model active
属性 设置为 true 来动态部署此模型,但我仍然在露天日志中收到此错误:
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 "{http://www.alfresco.org/model/dictionary/1.0}model" end tag, found "{http://www.alfresco.org/model/dictionary/1.0}model" start tag (line 80, col 61)
有没有人以前做过这个?感谢您的帮助。
你的模型不应该以 </model>
结尾,而不是 <model>
吗?