AnsweredAssumed Answered

problem to find JavaDelegate class

Question asked by ridottiastozze on Nov 22, 2011
Latest reply on Oct 10, 2012 by valarmathi
Hi everyone,
I'm not able to link my java class in execution. I would like to use a simple JavaDelegate class but Tomcat launches the exception:
     caused by: org.activiti.engine.ActivitiClass LoadingException: class not found: packageprovajar.recuperaValori

I write the code:

package packageprovajar;
import org.activiti.engine.delegate.DelegateExecution;

public class recuperaValori implements JavaDelegate {
     public void execute(DelegateExecution execution) throws Exception {
       System.out.println("sono in recupera valori");

<userTask id="usertask2" name="verifica disponibilita libro1" activiti:candidateGroups="management"></userTask>
    <sequenceFlow id="flow2" name="" sourceRef="usertask1" targetRef="usertask2"></sequenceFlow>
    <serviceTask id="servicetask1" name="Service Task1" activiti:class="packageprovajar.recuperaValori">
        <activiti:field name="text">
          <activiti:string>Hello World</activiti:string>

I have inserted the .jar in the path  C:\activiti-5.8\apps\apache-tomcat-6.0.32\webapps\activiti-rest\WEB-INF\lib
and in the path C:\activiti-5.8\apps\apache-tomcat-6.0.32\lib  but Tomcat launches always the same exception.
Probably i have inserted the .jar file in the wrong path but i'm not able to find the correct one.
Anyone can help me? thank you.