<constraints>
<constraint name="fws:duStateList" type="LIST">
<parameter name="allowedValues">
<list>
<value>Draft</value>
<value>Created</value>
<value>Validated</value>
</list>
</parameter>
</constraint>
</constraints>
15:44:09,653 INFO [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
15:44:27,538 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fws.dictionaryBootstrap' defined in file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\extension\fws-model-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/extension/model/fwsModel.xml
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/extension/model/fwsModel.xml
at org.alfresco.repo.dictionary.DictionaryBootstrap.initDictionary(DictionaryBootstrap.java:147)
at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Failed to parse model
at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:99)
at org.alfresco.repo.dictionary.DictionaryBootstrap.initDictionary(DictionaryBootstrap.java:142)
… 42 more
Caused by: org.jibx.runtime.JiBXException: Expected end tag, found start tag "{http://www.alfresco.org/model/dictionary/1.0}property" (line 113, col 54)
at org.jibx.runtime.impl.UnmarshallingContext.toEnd(UnmarshallingContext.java:548)
at org.jibx.runtime.impl.UnmarshallingContext.parsePastEndTag(UnmarshallingContext.java:805)
at org.alfresco.repo.dictionary.M2Class.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Class.java)
at org.alfresco.repo.dictionary.M2Type.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_2_0(M2Type.java)
at org.alfresco.repo.dictionary.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2bindingM2Type_access.unmarshal()
at org.alfresco.repo.dictionary.JiBX_MungeAdapter.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_4()
at org.alfresco.repo.dictionary.M2Model.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2binding_unmarshal_1_0(M2Model.java)
at org.alfresco.repo.dictionary.JiBX_root_projects_repository_source_java_org_alfresco_repo_dictionary_m2bindingM2Model_access.unmarshal()
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2515)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2675)
at org.alfresco.repo.dictionary.M2Model.createModel(M2Model.java:94)
… 43 more
15:44:44,803 INFO [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
15:44:53,545 INFO [org.alfresco.web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
15:44:53,545 INFO [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 1837.0349ms)
15:45:56,230 INFO [org.alfresco.web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
15:45:56,240 INFO [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 62617.535ms)
15:45:56,450 INFO [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
<property name="prefix:nomMetadonnee">
<type>d:text</type>
<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>valeur1</value>
<value>valeur2</value>
<value>valeur3</value>
<value>valeur4</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
J'utilise ce genre de contraintes dans mon Alfresco en version 2.2.1 et je suppose que c'est toujours correct dans les versions supérieures. <type name="fws:dataUnit">
<title>FWS Data Unit</title>
<parent>fws:document</parent>
<properties>
<property name="fws:duRevision">
<title>Revision number</title>
<type>d:int</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>1</default>
</property>
<property name="fws:duState">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>Draft</default>
<constraints>
<constraint ref="fws:duStateList" />
</constraints>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
<type name="fws:dataUnit">
<title>FWS Data Unit</title>
<parent>fws:document</parent>
<properties>
<property name="fws:duRevision">
<title>Revision number</title>
<type>d:int</type>
<protected>false</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>1</default>
</property>
<property name="fws:duState">
<type>d:text</type>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>Draft</default>
<constraints>
<constraint type="LIST">
<parameter name="allowedValues">
<list>
<value>Draft</value>
<value>Created</value>
<value>Validated</value>
</list>
</parameter>
</constraint>
</constraints>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
</mandatory-aspects>
</type>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.fws.si.c-s.fr/model/content/1.0"
prefix="fws" />
</namespaces>
<constraints>
<constraint name="fws:duStateList" type="LIST">
<parameter name="allowedValues">
<list>
<value>Draft</value>
<value>Created</value>
<value>Validated</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="fws:dataUnit">
<title>FWS Data Unit</title>
<parent>fws:document</parent>
<properties>
<property name="fws:duRevision">
<title>Revision number</title>
<type>d:int</type>
<protected>true</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>1</default>
</property>
<property name="fws:duState">
<type>d:text</type>
<protected>true</protected>
<mandatory>true</mandatory>
<multiple>false</multiple>
<default>Draft</default>
<constraints>
<constraint ref="fws:duStateList" />
</constraints>
</property>
</properties>
<mandatory-aspects>
<aspect>cm:versionable</aspect>
<!–
<properties> <property name="cm:initialVersion">false</property>
<property name="cm:autoVersion">false</property> </properties>
–>
</mandatory-aspects>
</type>
</types>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.