cancel
Showing results for 
Search instead for 
Did you mean: 

NamespaceException: URI has already been defined

fgeorges
Champ in-the-making
Champ in-the-making
Hi,

  I try to follow the simple workflow described in the Wiki at
http://wiki.alfresco.com/wiki/WorkflowAdministration.  You'll
find below the model I use (this is the only place the namespace
URI http://www.alfresco.org/model/workflow/1.0 is used.)  But
when I start Alfresco, I get this exception:


    org.alfresco.service.namespace.NamespaceException: URI
    http://www.alfresco.org/model/workflow/1.0 has already been
    defined

  If I comment out the element:

    <namespace uri="http://www.alfresco.org/model/workflow/1.0"
               prefix="wf"/>

or if I use the XML namespace binding instead (xmlns:wf="…"), I
get an exception about the prefix wf not bound (which seems
correct.)

  I don't see what's possibly wrong there…  Do you?

  Regards,


Florent Georges
http://www.fgeorges.org/
2 REPLIES 2

fgeorges
Champ in-the-making
Champ in-the-making
Well, it seems I didn't understand correctly the error message (I don't think it is clear.)  It seems I misunderstood the semantics of the elements namespaces/namespace.  Simply changing the URI with something different was enough.

Sorry for the noise,


Florent Georges
http://www.fgeorges.org/

vinaxwater
Champ in-the-making
Champ in-the-making
I think that register with system. I defined:
1. In file Model:

<namespaces>
      <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</namespaces>
2. In file Process:

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="tmp">

Note: task name must begin with wf (e.x: <task name="wf:startTaskTemp" swimlane="initiator"></task>).

Regards.