-
Bug
-
Resolution: Done
-
Major
-
6.3.0.GA, 6.3.1.GA
-
EAP 6.4 + BPMS 6.3
-
-
-
-
-
-
-
CR1
-
Workaround Exists
-
-
Hi,
We want to execute java methods from a "Service task" in a process but we always are getting a ClassNotFound exception while the service task is being executed.
We have tried the sample process provided by Maciej [1] on busines-central. Here is the java code [2] packaged in a mavenized jar file and this artifact has been upload to the business-central. We have created a project in the business-central, imported the sample process and added the dependency to the uploaded artifact. Everything works fine (upload artifact, import process, add dependency, build&deploy) but when it is called from inside the "service task" under "Process Definition" menu in the business-central, we always get a CNFE. However, the same file is accessible from a script task.
After doing some tests, we realized that if we copy the jar file with the java code in the "business-central/WEB-INF/lib" folder, it works fine and there is no CNFE.
Shouldn't it work if you put it as a dependency in the project?
[1] https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/test/resources/BPMN2-ServiceProcess.bpmn2
[2] https://github.com/droolsjbpm/jbpm/blob/master/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/objects/HelloService.java
Regards,
Oscar.