I have successfully deployed the jBPM starter kit, and I am using our own JAVA application to create a process definition using the
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(wfdefinitionxml); where wfdefinitionxml is obviously a string that contains the xml....
I tried to start really simply by using the "Hello World" xml example in the Getting Started Tutorial which is extremly simple.....
But I seem to be getting an error on the parseXmlString, in my console I see the following:
About to create the process definition by parsing the xml
13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.1.xsd)
13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.1.xsd' resource
19/Jan 13:15.07: - 133300224 - 117607696 - org.jbpm.jpdl.JpdlException: [[ERROR] line 1: TargetNamespace.1: Expecting namespace 'urn:jbpm.org:jpdl-3.
0', but the target namespace of the schema document is 'http://jbpm.org/3/jpdl'., [ERROR] line 1: cos-ct-extends.220.127.116.11.2.2.1: Error for type '#AnonT
ype_assignment'. The content type of a derived type and that of its base must both be mixed or element-only., [ERROR] line 1: st-props-correct.2: cir
cular definitions detected for type ':node-elements'.]
The first line you see is just the output from a System.out.println that lets me know where I am in the java.
Anyone any ideas as to what may be causing this?
I'm kinda stuck until I can get this thing to do what its supposed to....
uhhhmmmm..... what about :
TargetNamespace.1: Expecting namespace 'urn:jbpm.org:jpdl-3.
0', but the target namespace of the schema document is 'http://jbpm.org/3/jpdl'.,
the error is in your stacktrace..... please read it...
Thanks. Yes I could see the error in the stack trace - but it means nothing to me, hence the request for assistance on the forum for ideas or suggestions to resolve the error.
I have used nothing other than what is in the starter kit - and have copied the example from the user guide about the various methods etc for creating a process definition by parsing some XML (I even used the simple xml example in the user guide).
If anyone has any constructive suggestions - that would be most helpful.
sorry, but please do not, never (even not indirectly) abuse me of not giving constructive suggestions.
You did not mention that you see the error, but have no idea what it means, so I pointed you to the error. To me that is constructive. The error is related to the way your process is defined. It is a basic XML error, which I now assume you have no knowledge of.
The solution is also mentioned in the error.
your file contains: http://jbpm.org/3/jpdl
expected was: urn:jbpm.org:jpdl-3.0
So I suggest you try to replace it. That's not to difficult is it? So before accusing anyone of not being constructive, read the error first, try to understand part of it, search the internet and this forum on the words in the error and try solving it. If all that fails, and only then report the error here but with enough information for us to be able to interpret it:
My humblest apologies. I did not mean to cause offense - and I sincerely regret any that my words may have caused. I am under intense pressure to get this moving and this rose to the surface with my frustration, that is no excuse for my words of course.
The fault is mine as I obviously did not put enough information into my original post.
Once again - my apologies.