Hi all and sorry in advance if there is already an answer for my question. I saw other related threads, but not the same situation.
I have some java code that I invoke from my custom tasks, I also have my BPM and it all works both from shell/maven or from Eclipse+Activiti (no server or explorer, only from autogenerated Junit Tests executing my BP). My BP runs and invokes all my Java code perfectly.
So I finally deploy activiti explorer in my tomcat, I place my libraries (jars) in Tomcat classpath and I manually deploy my .bpmn file. It seems to load correctly, so I push the start button in my new process and that's when the problem comes. It says:
java.lang.ClassNotFoundException: org.activiti.engine.delegate.JavaDelegate
so I add to Tomcat classpath one more jar: activiti-engine-5.14.jar
Now the problem is different… and crazy:
org.activiti.engine.ActivitiIllegalArgumentException: Incompatible type set on field declaration 'roleName' for class com.blah.MyTask. Declared value has type org.activiti.engine.impl.el.FixedValue, while expecting org.activiti.engine.impl.el.FixedValue
So it seems by adding the engine jar there is duplication of classes which (if true) confirms my initial impression: I shouldn't add this engine jar because this is something activiti explorer should already have in the first place.
1* Once activiti explorer is successfully running, should I add ONLY my code, or also some activity jars?
2* Did you have this problem? How do you avoid it?
3* Just in case, is there any better alternative instead of extending JavaDelegate?
In case it helps, so far I only have the basic setup, I mean, I just deployed in tomcat the activitiexplorer was as it comes so only in-memory DB and so on.
Thank you very much in advance. cheers
antonio