AnsweredAssumed Answered

ClassNotFoundException when trying implement a service task

Question asked by tnfyj520 on Jan 9, 2012
Latest reply on Jan 10, 2012 by trademak
Hi everyone, I'm trying to implement a java service task on Activiti 5.8 .
The process was defined like this:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="TestServiceTask" name="TestServiceTask">
    <documentation>Place documentation for the 'TestServiceTask' process here.</documentation>
    <startEvent id="theStart" name="Start"></startEvent>
    <serviceTask id="serviceTask" name="Service Task" activiti:class="com.neusoft.nsop.test.HelloBPMN"></serviceTask>
    <sequenceFlow id="flow1" name="" sourceRef="theStart" targetRef="serviceTask"></sequenceFlow>
    <endEvent id="theEnd" name="End"></endEvent>
    <sequenceFlow id="flow2" name="" sourceRef="serviceTask" targetRef="theEnd"></sequenceFlow>
  </process>
</definitions>
After deploy the process on Activiti Engine, and place the implement jar file to the path : "%CATALINA_HOME%\webapps\activiti-rest\WEB-INF\lib\", I can see the corresponding diagram on Activiti Explorer, but when I trying to start it , I got an exception says tomcat can't find the implement class , which is, "com.neusoft.nsop.test.HelloBPMN" in this case.
I'm sure that the jar file contains the required class. I've try to redo the deployment work several times following the user guide, but didn't work at all.
Does anyone got any clue about this? I will be very appreciate for your help.

Outcomes