As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<type name="my:content"> <parent>cm:cmobject</parent> <properties> <property name="my:content"> <type>d:content</type> <multiple>true</multiple> </property> </properties> </type>
validate-model: [java] Working directory ignored when same JVM is used. [java] Testing dictionary model definitions… [java] alfresco/model/dictionaryModel.xml [java] alfresco/model/systemModel.xml [java] org/alfresco/repo/security/authentication/userModel.xml [java] alfresco/model/contentModel.xml [java] alfresco/model/wcmModel.xml [java] alfresco/model/applicationModel.xml [java] alfresco/model/bpmModel.xml [java] config/alfresco/module/foo.bar.intranet.cm/foobarIntranetModel.xml [java] Found an invalid model… [java] Could not import bootstrap model config/alfresco/module/foo.bar.intranet.cm/foobarIntranetModel.xml [java] Failed to compile model my::foobarmodel [java] d_dictionary.property.err.single_valued_content
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org_alfresco_module_foobarIntranet_dictionaryBootstrap' defined in file [D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\foo.bar.intranet.cm\module-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/module/foo.bar.intranet.cm/foobarIntranetModel.xml Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: Could not import bootstrap model alfresco/module/foo.bar.intranet.cm/foobarIntranetModel.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.AbstractAutowireCapableBean
// ensure content properties are not multi-valued if (propertyTypeName.equals(DataTypeDefinition.CONTENT) && isMultiValued()) { throw new DictionaryException("d_dictionary.property.err.single_valued_content"); }