0 Replies Latest reply on Oct 18, 2013 4:31 AM by 聪 廖

    How can I install jbpm-human-task-war-5.4.0.Final-EE6.war into tomcat

    聪 廖 Newbie

      How can I install jbpm-human-task-war-5.4.0.Final-EE6.war into tomcat?

      and how can I access to it ?

       

      now, I move the war to tomcat webapp folder, and start the server at 127.0.0.1 and port 5153.

      I want to access to it like this:

      ---------------------------------------------

      KnowledgeBuilder kbuilder2 = KnowledgeBuilderFactory

        .newKnowledgeBuilder();

        kbuilder2.add(ResourceFactory.newClassPathResource("p1.bpmn"),

        ResourceType.BPMN2);

        KnowledgeBase kbase2 = kbuilder2.newKnowledgeBase();

        StatefulKnowledgeSession ksession2 = JBPMHelper

        .newStatefulKnowledgeSession(kbase2);

        AsyncMinaHTWorkItemHandler wh =  new AsyncMinaHTWorkItemHandler(

        ksession2);

        ksession2.getWorkItemManager()

        .registerWorkItemHandler("Human Task", wh);

        ProcessInstance processInstance2 = ksession2

        .startProcess("com.sample.bpmn2");

      ------------------------------------------------

      but the result is:

      ------------------------------------------------

      6553 18/10 16:29:35,375[main] ERROR drools.persistence.SingleSessionCommandService.rollbackTransaction  - Could not commit session

      org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn2:10 - User Task:3] -- Could not connect task client

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)

        at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)

        at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)

        at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)

        at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)

        at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)

        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)

        at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)

        at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)

        at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1098)

        at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)

        at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120)

        at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39)

        at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

        at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223)

        at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:214)

        at Test.main(Test.java:54)

      Caused by: java.lang.IllegalArgumentException: Could not connect task client

        at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler.connect(AsyncGenericHTWorkItemHandler.java:144)

        at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler.executeWorkItem(AsyncGenericHTWorkItemHandler.java:166)

        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55)

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        ... 24 more

      Exception in thread "main" org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn2:10 - User Task:3] -- Could not connect task client

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)

        at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)

        at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238)

        at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)

        at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)

        at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194)

        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309)

        at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170)

        at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140)

        at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1098)

        at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320)

        at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120)

        at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39)

        at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:373)

        at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223)

        at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:214)

        at Test.main(Test.java:54)

      Caused by: java.lang.IllegalArgumentException: Could not connect task client

        at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler.connect(AsyncGenericHTWorkItemHandler.java:144)

        at org.jbpm.process.workitem.wsht.AsyncGenericHTWorkItemHandler.executeWorkItem(AsyncGenericHTWorkItemHandler.java:166)

        at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.internalExecuteWorkItem(JPAWorkItemManager.java:55)

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:107)

        at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126)

        ... 24 more

      ------------------------------------------------

      what is the reason?

       

      By the way, there is no human-task in jbpm6 cr2?