4 Replies Latest reply on Jun 29, 2009 10:34 AM by Tom Baeyens

    Incomplete example setup

    Heiko Braun Master

      Seems as if the process resources (classes, etc) are still not deployed correctly.

      Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't create object: couldn't load class org.jbpm.examples.custom.PrintDots
       at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:146)
       at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:473)
       at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:452)
       at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:262)
       at org.jbpm.jpdl.internal.activity.CustomBinding.parse(CustomBinding.java:48)
       at org.jbpm.jpdl.internal.xml.JpdlParser.parseActivities(JpdlParser.java:266)
       at org.jbpm.jpdl.internal.xml.JpdlParser.parseDocumentElement(JpdlParser.java:214)
       at org.jbpm.pvm.internal.xml.Parser.parseDocument(Parser.java:475)
       at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:394)
       at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:157)
       at org.jbpm.jpdl.internal.repository.JpdlDeployer.deploy(JpdlDeployer.java:60)
       at org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
       ... 57 more
      


        • 1. Re: Incomplete example setup
          Heiko Braun Master

          Do you think you can go GA without the classloading, deployment issue being resolved? Currently I cannot use the examples from within jboss after running "ant deploy.examples".

          • 2. Re: Incomplete example setup
            Tom Baeyens Master

            i thought this was fixed.

            at least it is part of the automated integration test build.

            maybe it's not in the demo setup part. i'll look into it.

            https://jira.jboss.org/jira/browse/JBPM-2367

            • 3. Re: Incomplete example setup
              Ronald van Kuijk Master

              Resources were not being deployed in the ant target, only the processdefinition. I tried to manually create a bar file and that worked.

              Resources were being loaded then, but e.g. the taskforms did not take the full path into account. They were expected in the 'root'

              • 4. Re: Incomplete example setup
                Tom Baeyens Master

                ok.

                i see the problem now. the examples jar deployment is part of the specific integration test setup in qa\build.xml:

                <target name="internal.tweak.jbpm.installation.for.integration.testrun">
                 <copy todir="${jboss.server.config.dir}/deploy/jbpm/jbpm-service.sar" overwrite="true">
                 <fileset dir="jbpm.cfg.jboss.testsuite/jbpm.identity" />
                 </copy>
                 <antcall target="internal.install.idm.into.jboss.integrationtestspecifics" />
                 <ant antfile="${jbpm.home}/examples/build.xml" target="examples.jar" />
                 <mkdir dir="${jboss.server.config.dir}/deploy/jbpm/userlibs" />
                 <copy file="${jbpm.home}/examples/target/examples.jar"
                 todir="${jboss.server.config.dir}/deploy/jbpm/userlibs" />
                 <copy file="../modules/test-db/target/jbpm-test-db-${jbpm.version}-tests.jar"
                 todir="${jboss.server.config.dir}/deploy/jbpm/userlibs" />
                 <copy file="../modules/distro/target/libs/junit.jar"
                 todir="${jboss.server.config.dir}/deploy/jbpm/userlibs"/>
                 </target>
                


                i'll fix it