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="" xmlns:xsi="" xmlns:activiti="" xmlns:bpmndi="" xmlns:omgdc="" xmlns:omgdi="" typeLanguage="" expressionLanguage="" targetNamespace="">
  <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>
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.