Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problems with targetNamespace(Value of targetNamespace not valid)
Problems with targetNamespace [message #912471] Thu, 13 September 2012 16:32 Go to next message
paco gutierrez is currently offline paco gutierrezFriend
Messages: 7
Registered: September 2012
Junior Member
Hello,


I'm new in BPMN, EMF and ATL and I begin working with ATL transformations from BPMN 2.0 to other languages.
My metamodel is the file with the BPMN20 specifications and my model XMI file is:


<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:bpmn="www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmnxmi="www.omg.org/spec/BPMN/20100524/MODEL-XMI" xmlns:dcxmi="www.omg.org/spec/DD/20100524/DC-XMI" xmlns:bpmndi="www.omg.org/spec/BPMN/20100524/DI" xmlns:dixmi="www.omg.org/spec/DD/20100524/DI-XMI" xmlns:bpmndixmi="www.omg.org/spec/BPMN/20100524/DI-XMI" xmlns:xmi="schema.omg.org/spec/XMI" xmlns:di="www.omg.org/spec/DD/20100524/DI" xmlns:dc="www.omg.org/spec/DD/20100524/DC">
<bpmnxmi:Definitions targetNamespace="www.brigid.net/bpmn20" expressionLanguage="www.w3.org/1999/XPath" typeLanguage="www.w3.org/2001/XMLSchema">
<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 "/>
</laneSets>
</rootElements>
</bpmnxmi:Definitions>
</xmi:XMI>



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 I've get the next error:
"org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'www.omg.org/spec/BPMN/20100524/MODEL-XMI' 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:
bpmn20(www.omg.org/spec/BPMN/20100524/MODEL-XMI)
bpmndi(www.omg.org/spec/BPMN/20100524/DI-XMI)
dc(www.omg.org/spec/DD/20100524/DC-XMI)
di(www.omg.org/spec/DD/20100524/DI-XMI)



and I've get still the initial error: "value of TargetNamespace is not legal".


I've tested then, with other normally correct values (for targetNamespace)?:
"www.omg.org/bpmn20",
"www.omg.org/spec/BPMN/2.0/",
...


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


Finally, they sugget me to send a topic to this forum.




I think that perhaps it would be related with the issue (16398) in www.omg.org/issues/bpmn2-rtf.open.html?:


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

Nature: Clarification
Severity: Significant
Summary:
The official XML Schema for BPMN 2.0 (www.omg.org/spec/BPMN/20100501/BPMN20.xsd) is not valid.


- It imports a schema with the schemaLocation "www.omg.org/spec/BPMN/20100501/Diagram Interchange.xsd", which does not exist.
Even when using the correct schemaLocation of "www.omg.org/spec/BPMN/20100501/DI.xsd", the namespace does not match (www.omg.com/di/1.0.0 vs. www.omg.org/spec/DD/20100524/DI)
(Note that one uses "omg.com" and the other uses "omg.org".)


- It includes the Schema "www.omg.org/spec/BPMN/20100501/Semantic.xsd", but its targetNamespace www.omg.org/spec/BPMN/20100524/MODEL does not match the including schema's value.



- The website www.omg.org/spec/BPMN/2.0/ has missmatching links for several items:
-- "www.omg.org/spec/BPMN/20100501/DI.xsd" links to "www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"
-- "www.omg.org/spec/BPMN/20100501/Semantic.xsd" links to " www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"


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



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


Anyone knows if there is a solution for the problem related with this issue or if it's other the problem I have?


Thanks in advance.


Paco.
Re: Problems with targetNamespace [message #912482 is a reply to message #912471] Thu, 13 September 2012 16:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Paco,

Comments below.
On 13/09/2012 6:32 PM, paco gutierrez wrote:
> Hello,
>
>
> I'm new in BPMN, EMF and ATL and I begin working with ATL
> transformations from BPMN 2.0 to other languages.
That's a lot to learn at once.
> My metamodel is the file with the BPMN20 specifications and my model
> XMI file is:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.0"
> xmlns:bpmn="www.omg.org/spec/BPMN/20100524/MODEL"
> xmlns:bpmnxmi="www.omg.org/spec/BPMN/20100524/MODEL-XMI"
> xmlns:dcxmi="www.omg.org/spec/DD/20100524/DC-XMI"
> xmlns:bpmndi="www.omg.org/spec/BPMN/20100524/DI"
> xmlns:dixmi="www.omg.org/spec/DD/20100524/DI-XMI"
> xmlns:bpmndixmi="www.omg.org/spec/BPMN/20100524/DI-XMI"
> xmlns:xmi="schema.omg.org/spec/XMI"
> xmlns:di="www.omg.org/spec/DD/20100524/DI"
> xmlns:dc="www.omg.org/spec/DD/20100524/DC">
> <bpmnxmi:Definitions targetNamespace="www.brigid.net/bpmn20"
> expressionLanguage="www.w3.org/1999/XPath"
> typeLanguage="www.w3.org/2001/XMLSchema">
> <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 "/>
> </laneSets>
> </rootElements>
> </bpmnxmi:Definitions>
> </xmi:XMI>
>
>
>
> I've problems when I run the transformations.
> And I've the next error: "value of TargetNamespace is not legal".
What produces that error?
>
>
> 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 I've get the next error:
> "org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
> 'www.omg.org/spec/BPMN/20100524/MODEL-XMI' not found."
Does the BPMN2 project provide a generated EPackage for that namespace?
>
>
>
> 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:
> bpmn20(www.omg.org/spec/BPMN/20100524/MODEL-XMI)
> bpmndi(www.omg.org/spec/BPMN/20100524/DI-XMI)
> dc(www.omg.org/spec/DD/20100524/DC-XMI)
> di(www.omg.org/spec/DD/20100524/DI-XMI)
>
>
>
> and I've get still the initial error: "value of TargetNamespace is not
> legal".
From where? Is there a stack trace?
>
>
> I've tested then, with other normally correct values (for
> targetNamespace)?:
> "www.omg.org/bpmn20",
> "www.omg.org/spec/BPMN/2.0/",
> ..
Where did your resource from? The BPMN tool? Have you asked on the BMPN
newsgroup what registrations you need in order to read instances? Maybe
it needs a specialized resource implementation they provide as part of
the project.
>
>
> and I've always the same error, when I open with the the Sample
> Reflective Ecore Model Editor.
That's not surprising if the models aren't registered.
>
>
> Finally, they sugget me to send a topic to this forum.
>
>
>
>
> I think that perhaps it would be related with the issue (16398) in
> www.omg.org/issues/bpmn2-rtf.open.html?:
>
>
> Issue 16398: XML Schema not valid (bpmn2-rtf)
>
> Nature: Clarification
> Severity: Significant
> Summary: The official XML Schema for BPMN 2.0
> (www.omg.org/spec/BPMN/20100501/BPMN20.xsd) is not valid.
>
> - It imports a schema with the schemaLocation
> "www.omg.org/spec/BPMN/20100501/Diagram Interchange.xsd", which does
> not exist. Even when using the correct schemaLocation of
> "www.omg.org/spec/BPMN/20100501/DI.xsd", the namespace does not match
> (www.omg.com/di/1.0.0 vs. www.omg.org/spec/DD/20100524/DI)
> (Note that one uses "omg.com" and the other uses "omg.org".)
>
>
> - It includes the Schema
> "www.omg.org/spec/BPMN/20100501/Semantic.xsd", but its targetNamespace
> www.omg.org/spec/BPMN/20100524/MODEL does not match the including
> schema's value.
>
>
>
> - The website www.omg.org/spec/BPMN/2.0/ has missmatching links for
> several items: -- "www.omg.org/spec/BPMN/20100501/DI.xsd" links
> to "www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"
> -- "www.omg.org/spec/BPMN/20100501/Semantic.xsd" links to "
> www.omg.org/spec/BPMN/20100501/BPMNDI.xsd"
>
>
> Resolution: Revised Text: Actions taken:
> July 28, 2011: received issue
>
>
>
> I've send a comment on this issue to mailto:bpmn2-rtf@xxxxxxxx like
> it's suggested in the site refered above, but no reply still.
>
>
> Anyone knows if there is a solution for the problem related with this
> issue or if it's other the problem I have?
This sounds like a BPMN specific question. You've asked there?
>
>
> Thanks in advance.
>
>
> Paco.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problems with targetNamespace [message #915559 is a reply to message #912482] Mon, 17 September 2012 14:26 Go to previous message
paco gutierrez is currently offline paco gutierrezFriend
Messages: 7
Registered: September 2012
Junior Member
Thanks Ed.


Yes I asked the question to the BPMN2 forum 2 weeks ago, but in that moment I put less information.


I'll test some things before and if I don't succeed, I'll do a new question to the BPMN2 forum with the information you suggest to me.



Previous Topic:Disable edit possibility in non-containment reference
Next Topic:XSD --&gt; Ecore question
Goto Forum:
  


Current Time: Thu Apr 25 09:55:19 GMT 2024

Powered by FUDForum. Page generated in 0.03464 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top