Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355645

Summary: targetNamespace and schemaLocation missing in generated XML for process
Product: [SOA] BPMN2Modeler Reporter: Robert Brodt <bbrodt>
Component: UIAssignee: Robert Brodt <bbrodt>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jomarko
Version: 0.0.1   
Target Milestone: 0.0.1-M1   
Hardware: PC   
OS: Windows 7   
URL: https://issues.jboss.org/browse/JBPM-3143
Whiteboard:

Description Robert Brodt CLA 2011-08-24 06:14:07 EDT
The process XML generated behing the scenes does not have targetNamespace and schemaLocation for BPMN20.xsd, thus gives warnings when the process is executed.

warnings on console are

(null: 2, 360): cvc-elt.1: Cannot find the declaration of element 'bpmn2:definitions'.
(null: 33, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
(null: 34, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
(null: 37, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.
(null: 38, 63): cvc-elt.4.2: Cannot resolve 'dc:Point' to a type definition for element 'di:waypoint'.


Brian Fitzpatrick added a comment - 19/Jul/11 5:50 PM

So we're looking to make sure that we add:

targetNamespace="http://www.jboss.org/drools"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"

to the <definitions> tag in the diagram model file.

Bob and I were talking about this today and we think we need some kind of extension mechanism to set up runtime-specific bits will be necessary.
Comment 1 Robert Brodt CLA 2012-01-05 15:19:16 EST
Fixed in most recent build
Comment 2 Jozef Marko CLA 2016-09-16 08:19:27 EDT
No more reproducible with  BPMN2 Modeler - 1.2.5.Final-v20160831-1132-B114