cancel
Showing results for 
Search instead for 
Did you mean: 

Namespace prefix not mapped error

brunoais
Champ in-the-making
Champ in-the-making
Happens on page:
http://localhost:8888/alfresco/service/enterprise/admin/admin-processengines

I'm using alfresco one demo.

<blockquote>
Message:   11190009 Wrapped Exception (with status template): 11190013 Failed to execute script 'classpath*:alfresco/enterprise/webscripts/org/alfresco/enterprise/repository/admin/repository-services/admin-processengines.get.js': org.alfresco.service.namespace.NamespaceException: Namespace prefix exc is not mapped to a namespace URI

Exception:   org.alfresco.service.namespace.NamespaceException - Namespace prefix exc is not mapped to a namespace URI
</blockquote>

I've checked everything I made and I appended ".bak" to the only file that references that prefix. It didn't solve that error.

What's causing the error?
12 REPLIES 12

brunoais
Champ in-the-making
Champ in-the-making
here it is.
Note that I had to change some stuff to prevent information leak from the work that is being made.


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

<model name="exc:workModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Some workflow Model</description>
   <author>///</author>
   <imports>
      <!– Import Alfresco Dictionary Definitions –>
      <import uri="http://www.alfresco.org/model/dictionary/1.0"
         prefix="d" />
      <!– Import Alfresco System Definitions –>
      <import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
      <!– Import Alfresco Content Domain Model Definitions –>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
      <!– Import User Model Definitions –>
      <import uri="http://www.alfresco.org/model/user/1.0" prefix="usr" />
      <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
   </imports>

   <namespaces>
      <namespace uri="http://www.exampleco.com/model/content/1.0" prefix="exc" />
   </namespaces>

   <types>
      <type name="exc:estimateTask">
         <parent>bpm:startTask</parent>

         <mandatory-aspects>
            <aspect>exc:workInfo</aspect>
         </mandatory-aspects>

      </type>

      <type name="exc:assignTask">
         <parent>bpm:workflowTask</parent>
         <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
         </overrides>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
            <aspect>exc:workInfo</aspect>
         </mandatory-aspects>
      </type>

      <type name="exc:executeTask">
         <parent>bpm:workflowTask</parent>
         <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>

         </overrides>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
            <aspect>exc:workInfo</aspect>
         </mandatory-aspects>
      </type>


      <type name="exc:confirmTaskConclusion">
         <parent>bpm:activitiOutcomeTask</parent>
         <properties>
            <property name="exc:reviewOutcome">
               <type>d:text</type>
               <default>Reject</default>
               <constraints>
                  <constraint name="exc:reviewOutcomeOptions" type="LIST">
                     <parameter name="allowedValues">
                        <list>
                           <value>Approve</value>
                           <value>Forfeit</value>
                           <value>Reject</value>
                        </list>
                     </parameter>
                  </constraint>
               </constraints>
            </property>
         </properties>
         <overrides>
            <property name="bpm:packageItemActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:outcomePropertyName">
               <default>{http://www.alfresco.org/model/workflow/1.0}reviewOutcome
               </default>
            </property>
         </overrides>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
            <aspect>exc:workInfo</aspect>
         </mandatory-aspects>
      </type>


      <type name="exc:estimateApproved">
         <parent>bpm:workflowTask</parent>

         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
            <aspect>exc:workInfo</aspect>
         </mandatory-aspects>
      </type>

   </types>

   <aspects>
      <aspect name="exc:workInfo">
         <properties>
            <property name="exc:workDescription">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
         </properties>
      </aspect>

   </aspects>

</model>

waelbenjdira
Champ in-the-making
Champ in-the-making
change this ligne
<namespace uri="http://www.exampleco.com/model/content/1.0" prefix="exc" />

to
<namespace uri="http://www.exampleco.com/model/exc/1.0" prefix="exc" />

shrikant_wadkar
Champ in-the-making
Champ in-the-making

I am facing the same issue, the model i am using is working on other environment but when i deployed it with same configurations on another server its giving namespace prefix not mapped error.