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