# No session factory configured for DbSqlSession

**URL:** <https://forum.flowable.org/t/no-session-factory-configured-for-dbsqlsession/12456>\
**Category:** Flowable Engine\
**Created:** [October 21, 2025, 4:09pm UTC](https://forum.flowable.org/t/no-session-factory-configured-for-dbsqlsession/12456 "2025-10-21T16:09:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpecheux](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/mpecheux/32/3763_2.png) [@mpecheux](https://forum.flowable.org/u/mpecheux)\
**Post date:** [October 21, 2025, 4:09pm UTC](https://forum.flowable.org/t/no-session-factory-configured-for-dbsqlsession/12456/1 "2025-10-21T16:09:38Z")

</div>

### Hi,

In an OSGi context (Karaf 4.4.7), I’m encountering the following issue when instantiating `processEngineFactory`:

Code

```auto
Caused by: org.flowable.common.engine.api.FlowableException: no session factory configured for org.flowable.common.engine.impl.db.DbSqlSession
    at org.flowable.common.engine.impl.interceptor.CommandContext.getSession(CommandContext.java:280)
    at org.flowable.common.engine.impl.db.AbstractDataManager.getSession(AbstractDataManager.java:52)
    at org.flowable.common.engine.impl.db.AbstractDataManager.getDbSqlSession(AbstractDataManager.java:56)
    at org.flowable.job.service.impl.persistence.entity.data.impl.MybatisJobDataManager.findJobsByQueryCriteria(MybatisJobDataManager.java:120)
    at org.flowable.job.service.impl.persistence.entity.JobEntityManagerImpl.findJobsByQueryCriteria(JobEntityManagerImpl.java:72)
    at org.flowable.job.service.impl.cmd.UnacquireOwnedJobsCmd.execute(UnacquireOwnedJobsCmd.java:54)
    at org.flowable.job.service.impl.cmd.UnacquireOwnedJobsCmd.execute(UnacquireOwnedJobsCmd.java:25)
    at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:75)
    at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:199)
    at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:128)
    at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:80)

```

The `ProcessEngineConfiguration` is created programmatically using `JtaProcessEngineConfiguration`, and the data source is directly injected into this configuration (`javax.sql.DataSource`).

Is there any specific configuration required to define the `JobDataManager` or to properly configure `MybatisJobDataManager`?

Thanks in advance for your help.

Best regards,
