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

**URL:** <https://forum.flowable.org/t/error-starting-flowable-rest-processenginefactorybean-cannot-be-cast-to-processengine/1728>\
**Category:** Flowable Engine\
**Created:** [March 8, 2018, 3:49pm UTC](https://forum.flowable.org/t/error-starting-flowable-rest-processenginefactorybean-cannot-be-cast-to-processengine/1728 "2018-03-08T15:49:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![naeem](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/naeem/32/3658_2.png) [@naeem](https://forum.flowable.org/u/naeem)\
**Post date:** [March 11, 2018, 2:54pm UTC](https://forum.flowable.org/t/error-starting-flowable-rest-processenginefactorybean-cannot-be-cast-to-processengine/1728/2 "2018-03-11T14:54:35Z")

</div>

Found a solution here: [Flowable-custom-context.xm is too bad as configuration sample!](https://forum.flowable.org/t/flowable-custom-context-xm-is-too-bad-as-configuration-sample/1415)  
But didn’t work for me.

Also tried this: [How to configure flowable-rest.war using JNDI](https://forum.flowable.org/t/how-to-configure-flowable-rest-war-using-jndi/446)  
But no luck.

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

---

_[View the full topic](https://forum.flowable.org/t/error-starting-flowable-rest-processenginefactorybean-cannot-be-cast-to-processengine/1728)._
