6 Replies Latest reply on Feb 13, 2007 5:04 AM by abdsahin

    unable to deploy ActionHandler

    kpavan_8

      Using jBPM 3.1.1
      Eclipse 3.2

      I am using the gpd Eclipse plugin for deploying. I added ActionHandler classes to the project and tried deploying, but it throws Excpetion happened while deploying. The stack trace is given below. If i remove the actionhandlers it deploys properly. Can somebody tell me how to deploy actionhandlers.

      java.lang.NullPointerException
      at org.jbpm.ui.util.ProcessDeployer.addClassOrResource(Unknown Source)
      at org.jbpm.ui.util.ProcessDeployer.addClassesAndResources(Unknown Source)
      at org.jbpm.ui.util.ProcessDeployer.createParBytes(Unknown Source)
      at org.jbpm.ui.util.ProcessDeployer.access$1(Unknown Source)
      at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
      at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
      at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:479)
      at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
      at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
      at org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66

        • 1. Re: unable to deploy ActionHandler
          hosierdm

          Are your ActionHandler classes in the same Eclipse project as your process and also checked in the Deployment tab? I think there is a limitation with GPD right now where the Java classes must reside in the same Eclipse project in order for them to be deployed with the process.

          • 2. Re: unable to deploy ActionHandler
            kpavan_8

            yes, the actionhanlder classes are in the same jBPM project.
            They are under src/java directory. In the deployment tab, if I check
            the actionhanlder classes to be deployed, it throws error. If I uncheck
            them it goes smoothly. Is there any other procedure of deploying other than
            the gpd?

            • 3. Re: unable to deploy ActionHandler
              hosierdm

              You can try saving the process as a file (using the button on the left instead of the one on the right), and then copy the file to the server deploy directory. If you are able to get that far without an Exception, the server should pick it up and deploy it. Although, you might get the same error in the server when doing this I suppose.

              • 4. Re: unable to deploy ActionHandler
                kpavan_8

                I havent understood what u mean by saving the process as a file, using left button..
                is there a process of deploying the class files thru ant task?? i found somethin like deploypartask, which tends to be deploying par file. there is no par file
                in the latest jbpm. how do i use the task to deploy class files along with process definition xml??

                • 5. Re: unable to deploy ActionHandler
                  koen.aers

                  I see that you are using Eclipse 3.2. The GPD has not been build and tested on that platform (though it will be shortly). So maybe this is the cause of your errors...

                  Reagerds,
                  Koen

                  • 6. Re: unable to deploy ActionHandler
                    abdsahin

                    pls be sure that you have already compiled your classes, check eclipse Build Automatically is checked.