AnsweredAssumed Answered

Error - Namespace prefix is not mapped to a namespace URI

Question asked by jayagopalan on Jan 11, 2011
Hi All,

I have added a Custom aspect in defaultCustomModel.xml

I have included the aspect with-in
1) Document Library config section <visible><addable><removable> tags in share-config.xml and in

2) config section of ws:article with in wcmquickstart-form-config xml to display the cat:PartNumber aspect field.

However I am getting org.alfresco.service.namespace.NamespaceException: Namespace prefix cat is not mapped to a namespace URI Error while adding the aspect to ws:article content type.

My defaultContentModel as below
<?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="cat: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="" prefix="cat"/>
         <!– Definition of new Content Aspect: Knowledge Base Document –>
      <aspect name="cat:catalogEntry">
         <title>Catalog Entry</title>
                <property name="cat:PartNumber">



Any idea to resove this?? Thanks for the help in advance ….