AnsweredAssumed Answered

Error while adding properties filed in ContentType

Question asked by bisana on Apr 19, 2012
Latest reply on Apr 23, 2012 by mitpatoliya
HI
I am  referring the document link
http://wiki.alfresco.com/wiki/Data_Dictionary_Guide
My intention to to  create property for Content type, I have cut and pasted the code which I am referring

 
<type name="cm:cmobject">
         <title>Object</title>
         <parent>sys:base</parent>
         <properties>
            <property name="cm:name">
               <type>d:text</type>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>cm:auditable</aspect>
         </mandatory-aspects>
      </type>

This above code throws me error such as
2012-04-19 14:04:23,172  ERROR [web.context.ContextLoader] [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'example.dictionaryBootstrap' defined in file [/opt/legaldm/tomcat/shared/classes/alfresco/extension/agg-model-context.xml]: Invocation of init method failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryException: 03190002 Could not import bootstrap model alfresco/extension/aggModel.xml
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:5

When I remark properties tag, and run alfresco I don't get error
Why cant I include the properties tag in the ContentType definition
Has any one faced this problem
Guidance and advice requested
Thanks
Joseph John

Outcomes