03-02-2009 06:56 AM
<type name="my:content">
<parent>cm:cmobject</parent>
<properties>
<property name="my:content">
<type>d:content</type>
<multiple>true</multiple>
</property>
</properties>
</type>
but model validation fails if I set multiple=true.03-02-2009 08:16 AM
03-02-2009 08:41 AM
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
03-02-2009 10:45 AM
// ensure content properties are not multi-valued
if (propertyTypeName.equals(DataTypeDefinition.CONTENT) && isMultiValued())
{
throw new DictionaryException("d_dictionary.property.err.single_valued_content");
}
Let us know if any nasty issues arise.02-08-2011 01:49 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.