louisp

ClassNotFoundException when using setVariable(...) with a custom POGO

Discussion created by louisp on May 31, 2019
Latest reply on Jun 3, 2019 by abbask01

I am calling setVariable(...) using a POGO, it does not raised any err, but later, when my BPMN reaches a Service Task I get the following err :

 

java.lang.ClassNotFoundException: <MyClass> at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:74) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName0(Class.java:348) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:291) at org.activiti.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:68) at org.activiti.engine.impl.variable.SerializableType$1.resolveClass(SerializableType.java:124)

 

Is there a way to make Activiti aware of this POGO ? I am already loading a custom JAR into my GroovyScriptingEngine, but it does not seem enough.

 

Same topic on stackoverflow : https://stackoverflow.com/questions/56395310/activiti-setvariable-with-custom-pogos

Outcomes