Flowable-IDM Error with Wildfly and MSSQL [Resolved]

I am trying to setup Flowable to run in wildfly and MSSQL. I am started by setting up the IDM module howerver I am running into the errors below.

Created the tables with the mssql scripts located on github at: flowable-engine/modules/flowable-idm-engine/src/main/resources/org/flowable/idm/db/create/

Modified flowable-idm/web-inf/classes/meta-inf/flowable-ui-app/flowable-ui–app.properties file with the following settings:

datasource.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
datasource.url=jdbc:sqlserver://myserverName:1433;databaseName=mybpmdb
datasource.username=myuserName
datasource.password=mypassword

In the flowable-idm/web-inf/lib folder I placed the sqljdbc4.jar

When starting Wildfly and I profile the database, I get a connection and several commands execute successfully. However then I get the following error:

ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“deploy”) failed - address: ([(“deployment” => “flowable-idm.war”)]) - failure description: {
“WFLYCTL0080: Failed services” => {“jboss.undertow.deployment.default-server.default-host./flowable-idm” => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./flowable-idm: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘bootstrapper’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.flowable.idm.api.IdmIdentityService org.flowable.app.conf.Bootstrapper.identityService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘idmIdentityService’ defined in class path resource [org/flowable/app/conf/FlowableIdmEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flowable.idm.api.IdmIdentityService]: Factory method ‘idmIdentityService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘idmEngine’ defined in class path resource [org/flowable/app/conf/FlowableIdmEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.flowable.idm.engine.IdmEngine]: Factory method ‘idmEngine’ threw exception; nested exception is java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder@16e2e646] for key [com.mchange.v2.c3p0.ComboPooledDataSource[ identityToken -> 1b61glg9mzlx9r666mt8a|4e075506, dataSourceName -> 1b61glg9mzlx9r666mt8a|4e075506 ]] bound to thread [ServerService Thread Pool – 69]

Upon closer inspection found that the error was due to a schema version difference. Corrected the version on the ACT_ID_PROPERTY table and the error went away.

Actual error text:
org.flowable.engine.common.api.FlowableException: Could not update Flowable IDM database schema: unknown version from database: ‘6.0.1.0’

Hi,

Did you test with the latest version from github master?
You should run into this version anymore, because we did some fixes last week.

Best regards,

Tijs

I did not test with latest version. Actually the error was because I had an older version of the code and pulled latest DB scripts from github. I will be working with github version for both, moving forward. Thanks.

Hi,

I tried to deploy flowable-idm.war [6.3] into widlfly after excluding spring related jars from lib folder and created flowable module by including flowable spring dependencies. But after successful deploy, Forbidden error 403. Is their a way to fix ?