Upgrade from 5.23.0 to 6.5.0 fails with ClassNotFoundException: org.activiti.engine.ActivitiException

Hi all,

I’m getting this error while trying to deploy upgraded application. Flowable engine is started via servlet, where flowable5Compatibility is set:
ProcessEngineConfiguration cfg = new StandaloneProcessEngineConfiguration()
.setFlowable5CompatibilityEnabled(true)
.setDatabaseSchemaUpdate(“true”)
.

ProcessEngine processEngine = cfg.buildProcessEngine();

There is no reference to any activiti class in the whole application. However, I’m getting this exception:

Caused by: java.lang.NoClassDefFoundError: org/activiti/engine/ActivitiException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.flowable.engine.compatibility.DefaultFlowable5CompatibilityHandlerFactory.createFlowable5CompatibilityHandler(DefaultFlowable5CompatibilityHandlerFactory.java:35)
at org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl.initFlowable5CompatibilityHandler(ProcessEngineConfigurationImpl.java:2577)
at org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:1054)
at org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:957)
at hr.osmibit.cm.view.servlets.ApplicationInitContextListener.contextInitialized(ApplicationInitContextListener.java:90)
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4991)
at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:574)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5560)
… 74 more
Caused by: java.lang.ClassNotFoundException: org.activiti.engine.ActivitiException
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1655)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1501)
… 84 more

Do I need any additional engine configuration beside setFlowable5CompatibilityEnabled(true)?

Thanks,
Boris

Upgrade with version 6.6.0 went smooth. All existing V5 tasks were handled OK and all processes work as intended. For anyone still on V5, go ahead and do an upgrade.