This content has been marked as final.
Show 7 replies
-
1. Re: Process Definition XML Validation Problems
apdo Dec 14, 2007 11:28 AM (in response to caleb.powell1)As is is written in the exception, you must add a name to the process definition.
form the todo example:<process-definition name="todo" xmlns="urn:jbpm.org:jpdl-3.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 http://jbpm.org/xsd/jpdl-3.1.xsd" >
at least, add the name="[a name here]" and the validation should pass
Phong -
2. Re: Process Definition XML Validation Problems
caleb.powell1 Dec 14, 2007 12:32 PM (in response to caleb.powell1)Hi Phong,
thanks for your reply. I added the name attribute as well as the other attributes and validation still doesn't pass:<process-definition xmlns="urn:jbpm.org:jpdl-3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 http://jbpm.org/xsd/jpdl-3.2.xsd" name='todo'> <start-state name='a'> <transition to='s'/> </start-state> <state name='s'> <transition to='end'/> </state> <end-state name='end'/> </process-definition>
Any other ideas? Can anyone else reproduce this problem?
n.b. For the record, we were actually trying to parse a much more complicated process definition and resorted to a simpler version to try and figure out what was going wrong. I omitted the name in the simple version. Thanks for pointing that out. -
3. Re: Process Definition XML Validation Problems
kukeltje Dec 15, 2007 8:17 AM (in response to caleb.powell1)your schemalocation is wrong. There is a urn:jbpm.org:jpdl-3.1 in there which should be 3.2
-
4. Re: Process Definition XML Validation Problems
caleb.powell1 Dec 19, 2007 10:58 AM (in response to caleb.powell1)Hi kukeltje,
thanks for catching that. I made the change to the following;<process-definition xmlns="urn:jbpm.org:jpdl-3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://jbpm.org/xsd/jpdl-3.2.xsd" name='todo'>
But it still hasn't resolved our issue. I will try a different version of the xercesImpl.
Regards,
Caleb -
5. Re: Process Definition XML Validation Problems
caleb.powell1 Dec 19, 2007 11:07 AM (in response to caleb.powell1)I upgraded the xercesImpl library to 2.4.0 and it resolved the problem. Thanks to everyone for your help.
-
6. Re: Process Definition XML Validation Problems
rams.rapol Apr 6, 2009 6:14 PM (in response to caleb.powell1)Hi,
i'm having same issue with xerces 2.6.2 -
7. Re: Process Definition XML Validation Problems
kukeltje Apr 6, 2009 7:24 PM (in response to caleb.powell1)uuhhmmmm move to 2.7.x then? Just a guess