5 Replies Latest reply on Jun 24, 2009 12:02 PM by Jurgen Werkmeister

    problem with examples and ant deploy.examples on jbpm-4.0-CR

    Jurgen Werkmeister Newbie

      Hi

      why does the ant file (deploy.examples) included with the examples exclude all these project?

       <jar destfile="${jbpm.home}/examples/target/examples.bar">
       <fileset dir="${jbpm.home}/examples/src">
       <include name="**/*.jpdl.xml" />
       <exclude name="org/jbpm/examples/task/swimlane/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/task/candidates/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/concurrency/graphbased/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/timer/repeat/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/script/text/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/decision/handler/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/script/expression/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/task/assignee/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/mail/inline/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/mail/template/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/eventlistener/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/timer/event/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/task/assignmenthandler/process.jpdl.xml" />
       <exclude name="org/jbpm/examples/java/JavaInstantiateTest.java" />
       </fileset>
       </jar>
      


      I deleted the eventlistener process exclusion and after running the ant file I cannot see the process list on the console anymore. It shows error:

       org.jbpm.api.JbpmException:
       error: couldn't interpret the dom model: couldn't create object: couldn't load class org.jbpm.examples.eventlistener.LogListener : org.jbpm.pvm.internal.wire.WireException: couldn't create object: couldn't load class org.jbpm.examples.eventlistener.LogListener
       xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'on'. [line=10 column=43 ]: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'on'.
       xml validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'custom'. One of '{"http://jbpm.org/4.0/jpdl":swimlane, "http://jbpm.org/4.0/jpdl":on, "http://jbpm.org/4.0/jpdl":timer, "http://jbpm.org/4.0/jpdl":start, "http://jbpm.org/4.0/jpdl":end, "http://jbpm.org/4.0/jpdl":end-cancel, "http://jbpm.org/4.0/jpdl":end-error, "http://jbpm.org/4.0/jpdl":state, "http://jbpm.org/4.0/jpdl":decision, "http://jbpm.org/4.0/jpdl":fork, "http://jbpm.org/4.0/jpdl":join, "http://jbpm.org/4.0/jpdl":script, "http://jbpm.org/4.0/jpdl":hql, "http://jbpm.org/4.0/jpdl":sql, "http://jbpm.org/4.0/jpdl":java, "http://jbpm.org/4.0/jpdl":task, "http://jbpm.org/4.0/jpdl":sub-process}' is expected. [line=11 column=26 ]: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'custom'. One of '{"http://jbpm.org/4.0/jpdl":swimlane, "http://jbpm.org/4.0/jpdl":on, "http://jbpm.org/4.0/jpdl":timer, "http://jbpm.org/4.0/jpdl":start, "http://jbpm.org/4.0/jpdl":end, "http://jbpm.org/4.0/jpdl":end-cancel, "http://jbpm.org/4.0/jpdl":end-error, "http://jbpm.org/4.0/jpdl":state, "http://jbpm.org/4.0/jpdl":decision, "http://jbpm.org/4.0/jpdl":fork, "http://jbpm.org/4.0/jpdl":join, "http://jbpm.org/4.0/jpdl":script, "http://jbpm.org/4.0/jpdl":hql, "http://jbpm.org/4.0/jpdl":sql, "http://jbpm.org/4.0/jpdl":java, "http://jbpm.org/4.0/jpdl":task, "http://jbpm.org/4.0/jpdl":sub-process}' is expected.
       xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'java'. [line=13 column=24 ]: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'java'.
       xml validation error: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'java'. [line=21 column=25 ]: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'continue' is not allowed to appear in element 'java'.
       org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)
       org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:142)