Hi,
In an OSGi context (Karaf 4.4.7), I’m encountering the following issue when instantiating processEngineFactory:
Code
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,