Error starting flowable-rest: ProcessEngineFactoryBean cannot be cast to ProcessEngine

Hi. I’m trying to start the flowable-rest webapp packaged in the 6.2.1 download. Only changed the database setup from h2 to postgres. Getting the following exception. Any idea why?

2018-03-08 18:04:06.106:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@6a6f6c7e{/flowable-rest,file:///…/webapps/flowable-rest/,UNAVAILABLE}{/flowable-rest}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dmnEngineConfiguration’ defined in class path resource [org/flowable/rest/conf/FlowableEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flowable.dmn.api.DmnEngineConfigurationApi]: Factory method ‘dmnEngineConfiguration’ threw exception; nested exception is java.lang.ClassCastException: org.flowable.spring.ProcessEngineFactoryBean$$EnhancerBySpringCGLIB$$da38e03d cannot be cast to org.flowable.engine.ProcessEngine

Found a solution here: Flowable-custom-context.xm is too bad as configuration sample!
But didn’t work for me.

Also tried this: How to configure flowable-rest.war using JNDI
But no luck.

Ummm… am I missing something major? Why is it so hard to start the REST service with the default (supplied) config?


Strange. Did you try to start the REST app with the default H2 config as well? Did that work?
Could you share the full boot log of Tomcat?

Best regards,


I’ll share… it’s a little tough to post too many logs / details as I’m running in a controlled environment. However I’m running Jetty not Tomcat.