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="http://www.alfresco.org/model/dictionary/1.0">

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

   <imports>
        <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

   <!– Introduction of new namespaces defined by this model –>
   <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
   <namespaces>
    <namespace uri="cat.new.uri" prefix="cat"/>
   </namespaces>
     
   
         <!– Definition of new Content Aspect: Knowledge Base Document –>
      <aspect name="cat:catalogEntry">
         <title>Catalog Entry</title>
         <properties>
                <property name="cat:PartNumber">
                    <title>PartNumber</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                </property>
               
      </aspect>

   </aspects>

   </aspects>
</model>

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

Thanks
jay

Outcomes