AnsweredAssumed Answered

Error deploying Content Model

Question asked by padmalaya on Mar 23, 2011
Latest reply on Apr 6, 2011 by openpj
I am using the conventional method of deploying a new content model, uploading customModel.xml,custom-model-context.xml and web-client-config.xml in the extensions folder.

However , whenever I customize a new custom model, I get Invalid Aspect error, or else a memory leak.
I have one more query, how do I deploy a model without aspects? And if I do , how do I know that the given model is active and that the content being uploaded used the model defined for it.

Thanks in advance,



<?xml version="1.0" encoding="UTF-8"?>

<!– Custom Model –>

<!– Note: This model is pre-configured to load at startup of the Repository.  So, all custom –>
<!–       types and aspects added here will automatically be registered –>

<model name="custom:customModel" xmlns="">

   <!– Optional meta-data about the model –>  
   <description>Custom Model</description>

        <!– Import Alfresco Dictionary Definitions –>
      <import uri="" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="" prefix="cm"/>

   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
      <namespace uri="custom.model" prefix="custom"/>


   <constraint name="custom:name_length" type="LENGTH">
         <parameter name="minLength">
         <parameter name="maxLength">

   <constraint name="custom:car_list" type="LIST">
         <parameter name="allowedValues">
                  <value>Volkswagon Vento</value>
                  <value>Tata Manza</value>
                  <value>Skoda Fabia</value>
                  <value>TATA Sumo</value>
      <!– Definition of new Content Aspect: Car Details –>
      <aspect name="custom:CarDetails">
         <title>Car Details</title>
            <property name="custom:CarName">
               <title>Car Name</title>
          <index enabled="true">
                 <constraint ref="custom:name_length"/>
            <property name="custom:CarModel">
               <title>Car Model</title>
                 <constraint ref="custom:car_list"/>

      <property name="custom:CarPrice">
               <title>Car Price</title>
                 <constraint ref="custom:office_list"/>


<?xml version='1.0' encoding='UTF-8'?>


    <!– Registration of new models –>   
    <bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">



<!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<aspect name="custom:CarDetails"/>

<!– Displays the properties in view details page –>
<config evaluator="aspect-name" condition="custom:CustomerDetails">
<separator name="sepCust1" display-label="Customer Details" component-generator="HeaderSeparatorGenerator" />
<show-property name="custom:CustomerName"/>
<show-property name="custom:CustomerContactName"/>

<show-property name="custom:CarDetails"/>
<show-property name="custom:CustomerContactPhone"/>

<show-property name="custom:CustomerProjectID"/>