Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[] Problems with targetNamespace


I write you because I've a question I asked in the BPMN 2.0 Modeler Eclipse Forum and they suggest me to put the question here.
I'm new in BPMN2, EMF and ATL and I begin working with ATL transformations from BPMN 2.0 to other languages.
My metamodel is the file (.ecore) with the BPMN20 specifications of the official site ( and my model XMI file is:

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:bpmn="" xmlns:bpmnxmi="" xmlns:dcxmi="" xmlns:bpmndi="" xmlns:dixmi="" xmlns:bpmndixmi="" xmlns:xmi="" xmlns:di="" xmlns:dc="">
<bpmnxmi:Definitions targetNamespace="" expressionLanguage="" typeLanguage="">
<rootElements xmi:type="bpmnxmi:Process" id="P1_sequence" name="P1 - Sequence">
<flowElements xmi:type="bpmnxmi:EndEvent" id="end" name="End" incoming="flow_C_end "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_Start_A" targetRef="action_A " sourceRef="start01 "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_A_B" targetRef="action_B " sourceRef="action_A "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_B_C" targetRef="action_C " sourceRef="action_B "/>
<flowElements xmi:type="bpmnxmi:SequenceFlow" id="flow_C_end" targetRef="end " sourceRef="action_C "/>
<flowElements xmi:type="bpmnxmi:StartEvent" id="start01" name="Start" outgoing="flow_Start_A "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_A" name="Action A" outgoing="flow_A_B " incoming="flow_Start_A "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_B" name="Action B" outgoing="flow_B_C " incoming="flow_A_B "/>
<flowElements xmi:type="bpmnxmi:Task" id="action_C" name="Action C" outgoing="flow_C_end " incoming="flow_B_C "/>
<laneSets xmi:type="bpmnxmi:LaneSet" id="laneSet01" name="LaneSet01">
<lanes xmi:type="bpmnxmi:Lane" id="lane01" name="Lane01" flowNodeRefs="flow_Start_A flow_A_B flow_B_C flow_C_end "/>

I don't generate that model (.XMI) with BPMN they supply me like a part of my project.
The XMI-model has not packages, then I don't need to register the XMI-model? In fact, when I right-click in the file the option for that, no appears.

I've problems when I run the transformations.
And I've the next error: "value of TargetNamespace is not legal".

I've send a topic to the ATL forum and they, first suggest me to open with the Sample Reflective Ecore Model Editor to check
the validity of my XMI file. Then when I open with this editor I've get the next error:
"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '' not found."

After that, they suggest me to verify if my metamodel is loaded in the EMF Registry.
For that, I've install a new version of Eclipse with Epsilon and Emfatic.
Then I've registered the metamodels I use:

and I've get still the initial error when I open with the Sample Reflective Ecore Model Editor: "value of TargetNamespace is not legal".

I've tested then, with other normally correct values (for targetNamespace)?:

and I've always the same error, when I open with the Sample Reflective Ecore Model Editor.

Anyone knows if there is a solution for the problem related with this issue or if it's other the problem I have?
Pherhaps I have to register other metamodels?, or I have to install new software in Eclipse, new XML, ATL packages, ...????
What registrations I need in order to read instances? Maybe I need a specialized resource implementation as part of my project?

Could that be related with the issue (16398) in

Issue 16398: XML Schema not valid (bpmn2-rtf)

Nature: Clarification
Severity: Significant
The official XML Schema for BPMN 2.0 ( is not valid.

- It imports a schema with the schemaLocation " Interchange.xsd", which does not exist.
Even when using the correct schemaLocation of "", the namespace does not match ( vs.
(Note that one uses "" and the other uses "".)

- It includes the Schema "", but its targetNamespace does not match the including schema's value.

- The website has missmatching links for several items:
-- "" links to      ""
-- "" links to ""

Revised Text:
Actions taken:
July 28, 2011: received issue

I've send a comment on this issue to bpmn2-rtf@xxxxxxx like it's suggested in the site refered above, but no reply still.

Thanks in advance.

Back to the top