3 Replies Latest reply on Sep 9, 2009 5:52 AM by Mustafa Musaji

    Execution Not found in JBoss

    Mustafa Musaji Novice

      I've deployed by jpdl.xml in JBoss and created a web service which I am hoping will invoke the workflow.

      My web method looks like this:

       @WebMethod
       public String request() {
       try {
       InitialContext ctx = new InitialContext();
       this.processEngine = (ProcessEngine)ctx.lookup("java:/ProcessEngine");
      
       ExecutionService execService = (ExecutionService)
       this.processEngine.get(ExecutionService.class);
      
       ProcessInstance processInstance = execService.signalExecutionById("process", variables);
      
       System.out.println("ProcessInstanceID: " + processInstance.getId());
       } catch (Exception e) {
       e.printStackTrace();
       }
       }
      


      JBoss output on detection of jpdl file
      14:05:45,394 INFO [JBPMDeployer] Deploy JBPMDeploymentMetaData {unit=vfsfile:/C:/Personal_Archive/D
      evelopment/Projects/FraudSwitch_Development/FraudSwitch/ThirdParty/jboss-5.0.0.GA/server/default/dep
      loy/fraud.jpdl.xml, jpdl=vfsfile:/C:/Personal_Archive/Development/Projects/FraudSwitch_Development/F
      raudSwitch/ThirdParty/jboss-5.0.0.GA/server/default/deploy/fraud.jpdl.xml, cl=null}
      14:05:45,847 INFO [Environment] Hibernate 3.3.1.GA
      14:05:45,847 INFO [Environment] hibernate.properties not found
      14:05:45,863 INFO [Environment] Bytecode provider name : javassist
      14:05:45,879 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      14:05:46,722 INFO [Configuration] configuring from resource: jbpm.hibernate.cfg.xml
      14:05:46,722 INFO [Configuration] Configuration resource: jbpm.hibernate.cfg.xml
      14:05:46,785 INFO [Configuration] Reading mappings from resource : jbpm.repository.hbm.xml
      14:05:46,910 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.repository.DeploymentImpl -> JBP
      M4_DEPLOYMENT
      14:05:46,988 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.repository.DeploymentProperty ->
       JBPM4_DEPLOYPROP
      14:05:47,129 INFO [Configuration] Reading mappings from resource : jbpm.execution.hbm.xml
      14:05:47,207 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.model.ExecutionImpl -> JBPM4_EXE
      CUTION
      14:05:47,316 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.type.Variable -> JBPM4_VARIABLE
      14:05:47,441 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.DateVariable ->
       JBPM4_VARIABLE
      14:05:47,441 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.DoubleVariable
      -> JBPM4_VARIABLE
      14:05:47,441 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.HibernateLongVa
      riable -> JBPM4_VARIABLE
      14:05:47,457 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.LongVariable ->
       JBPM4_VARIABLE
      14:05:47,457 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.HibernateString
      Variable -> JBPM4_VARIABLE
      14:05:47,472 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.StringVariable
      -> JBPM4_VARIABLE
      14:05:47,472 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.TextVariable ->
       JBPM4_VARIABLE
      14:05:47,488 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.NullVariable ->
       JBPM4_VARIABLE
      14:05:47,519 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.type.variable.BlobVariable ->
       JBPM4_VARIABLE
      14:05:47,519 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.lob.Lob -> JBPM4_LOB
      14:05:47,535 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.job.JobImpl -> JBPM4_JOB
      14:05:47,582 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.job.MessageImpl -> JBPM4_JOB
      14:05:47,582 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.model.op.ExecuteActivityMessa
      ge -> JBPM4_JOB
      14:05:47,582 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.model.op.ExecuteEventListener
      Message -> JBPM4_JOB
      14:05:47,582 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.job.CommandMessage -> JBPM4_J
      OB
      14:05:47,582 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.job.TimerImpl -> JBPM4_JOB
      14:05:47,613 INFO [Configuration] Reading mappings from resource : jbpm.history.hbm.xml
      14:05:47,629 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.history.model.HistoryProcessInst
      anceImpl -> JBPM4_HIST_PROCINST
      14:05:47,644 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.history.model.HistoryActivityIns
      tanceImpl -> JBPM4_HIST_ACTINST
      14:05:47,660 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryAutomati
      cInstanceImpl -> JBPM4_HIST_ACTINST
      14:05:47,660 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryDecision
      InstanceImpl -> JBPM4_HIST_ACTINST
      14:05:47,660 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskInst
      anceImpl -> JBPM4_HIST_ACTINST
      14:05:47,676 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.history.model.HistoryTaskImpl ->
       JBPM4_HIST_TASK
      14:05:47,691 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.history.model.HistoryVariableImp
      l -> JBPM4_HIST_VAR
      14:05:47,707 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.history.model.HistoryDetailImpl
      -> JBPM4_HIST_DETAIL
      14:05:47,707 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryCommentI
      mpl -> JBPM4_HIST_DETAIL
      14:05:47,738 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryPriority
      UpdateImpl -> JBPM4_HIST_DETAIL
      14:05:47,754 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskAssi
      gnmentImpl -> JBPM4_HIST_DETAIL
      14:05:47,754 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryTaskDued
      ateUpdateImpl -> JBPM4_HIST_DETAIL
      14:05:47,769 INFO [HbmBinder] Mapping subclass: org.jbpm.pvm.internal.history.model.HistoryVariable
      UpdateImpl -> JBPM4_HIST_DETAIL
      14:05:47,801 INFO [Configuration] Reading mappings from resource : jbpm.task.hbm.xml
      14:05:47,816 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.task.TaskImpl -> JBPM4_TASK
      14:05:47,816 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.task.ParticipationImpl -> JBPM4_
      PARTICIPATION
      14:05:47,816 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.task.SwimlaneImpl -> JBPM4_SWIML
      ANE
      14:05:47,847 INFO [Configuration] Reading mappings from resource : jbpm.identity.hbm.xml
      14:05:47,847 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.identity.impl.UserImpl -> JBPM4_
      ID_USER
      14:05:47,847 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.identity.impl.MembershipImpl ->
      JBPM4_ID_MEMBERSHIP
      14:05:47,879 INFO [HbmBinder] Mapping class: org.jbpm.pvm.internal.identity.impl.GroupImpl -> JBPM4
      _ID_GROUP
      14:05:47,879 INFO [Configuration] Configured SessionFactory: null
      14:05:47,894 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.r
      esources -> JBPM4_LOB
      14:05:47,894 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.repository.DeploymentImpl.o
      bjectProperties -> JBPM4_DEPLOYPROP
      14:05:47,910 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.variabl
      es -> JBPM4_VARIABLE
      14:05:47,941 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.systemV
      ariables -> JBPM4_VARIABLE
      14:05:47,941 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.executi
      ons -> JBPM4_EXECUTION
      14:05:47,957 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.model.ExecutionImpl.swimlan
      es -> JBPM4_SWIMLANE
      14:05:47,988 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProces
      sInstanceImpl.historyActivityInstances -> JBPM4_HIST_ACTINST
      14:05:47,988 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProces
      sInstanceImpl.historyVariables -> JBPM4_HIST_VAR
      14:05:48,004 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryProces
      sInstanceImpl.details -> JBPM4_HIST_DETAIL
      14:05:48,019 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryActivi
      tyInstanceImpl.details -> JBPM4_HIST_DETAIL
      14:05:48,019 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskIm
      pl.details -> JBPM4_HIST_DETAIL
      14:05:48,051 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskIm
      pl.historyVariables -> JBPM4_HIST_VAR
      14:05:48,066 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryTaskIm
      pl.subTasks -> JBPM4_HIST_TASK
      14:05:48,066 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryVariab
      leImpl.details -> JBPM4_HIST_DETAIL
      14:05:48,082 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.history.model.HistoryCommen
      tImpl.replies -> JBPM4_HIST_DETAIL
      14:05:48,113 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.participation
      s -> JBPM4_PARTICIPATION
      14:05:48,113 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.variables ->
      JBPM4_VARIABLE
      14:05:48,129 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.task.TaskImpl.subTasks -> J
      BPM4_TASK
      14:05:48,144 INFO [HbmBinder] Mapping collection: org.jbpm.pvm.internal.task.SwimlaneImpl.participa
      tions -> JBPM4_PARTICIPATION
      


      Whenever I kick off my client code I get the exception in Jboss that it can't find the execution "process".

      My jpdl file is sitting in the deploy folder in Jboss 5.0.0.GA along with a JAR for my application (very simple web service at the moment). If I package them up together the jpdl doesn't get detected (nor does it if i put it in a .bar).

      Can anyone shed any light on what I'm doing wrong? Where should the file be for my web service code to see it?



        • 1. Re: Execution Not found in JBoss
          Ronald van Kuijk Master

          it should be deployed in the database. The .bar deployer is one of the 'solutions' that should do this eventually, but it currently is under development afaik, so it might not work.

          But is a process started at all?

          • 2. Re: Execution Not found in JBoss
            Mustafa Musaji Novice

            Yeah it looks like its deploying the jpdl file fine.

            14:05:45,394 INFO [JBPMDeployer] Deploy JBPMDeploymentMetaData {unit=vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/process.jpdl.xml, jpdl=vfsfile:/C:/jboss-5.0.0.GA/server/default/deploy/fraud.jpdl.xml, cl=null}
            14:05:45,847 INFO [Environment] Hibernate 3.3.1.GA


            And then I get the trace I posted above with all the hibernate mappings taking place. So looks like its deploying. Its just when attempting to start the actual workflow I get the errors.

            No process (workflow) is started from what I can see. The exception is caught at the moment when I attempt to startExecutionById or signalexecutionById. I've tried a number of things. Any ideas?

            • 3. Re: Execution Not found in JBoss
              Mustafa Musaji Novice

              Just for information purposes. I got this working. I packaged my jpdl.xml along with my class files used by the workflow and also my webservice class files in a single jar. This solved the problem.