Upgraded from 5.22 to 6.1.0 UnsatisfiedDependencyException

I have upgraded from 5.22 to 6.1.0, getting the following error…

Need help in identifying the “UnsatisfiedDependencyException”…
This is a flowable springboot application.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘myApp’: Unsatisfied dependency expressed through field ‘runtimeService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘runtimeServiceBean’ defined in class path resource [com/imagework/config/FlowableConfiguration.class]: Unsatisfied dependency expressed through method ‘runtimeServiceBean’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘processEngine’: FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: Unsupported process engine configuration
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]

Bean Defination in the config class

Bean defined in com/imagework/config/FlowableConfiguration.class 
	@Bean
	public SpringProcessEngineConfiguration springProcessEngineConfiguration(PlatformTransactionManager transactionManager,
			SpringAsyncExecutor springAsyncExecutor) throws IOException {
	  Properties props = flowableProperties();
		SpringProcessEngineConfiguration spec = baseSpringProcessEngineConfiguration(dataSource(), transactionManager(sessionFactory().getObject()),
				springAsyncExecutor);
		spec.setDatabaseSchema(environment.getRequiredProperty("hibernate.default_schema"));
		spec.setDeploymentResources(null);
		spec.setAsyncExecutorActivate(props.getProperty("flowable.engine.asyncexecutor.enabled").equalsIgnoreCase("false")?false:true);
		spec.setFlowable5CompatibilityEnabled(true);
		
		return spec;
	}

And my gradle dependencies are

dependencies {

compile("org.flowable:flowable-spring:6.1.0")
compile("org.flowable:flowable-spring-boot-starter-basic:6.1.0")
compile("org.flowable:flowable-spring-boot-starter-rest-api:6.1.0")
compile("org.flowable:flowable-spring-boot-starter-jpa:6.1.0")
compile('org.flowable:flowable5-compatibility:6.1.0')
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile('org.postgresql:postgresql:9.4-1201-jdbc41')

compile("org.springframework.security.oauth:spring-security-oauth2")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("org.springframework.boot:spring-boot-starter-log4j:1.2.5.RELEASE")
compile("com.fasterxml.jackson.dataformat:jackson-dataformat-xml")

compile(‘com.google.code.gson:gson:2.8.0’)
compile(“org.apache.tomcat.embed:tomcat-embed-jasper”)

//Apache - tiles

compile ‘org.apache.tiles:tiles-core:3.0.5’
compile ‘org.apache.tiles:tiles-extras:3.0.5’
compile ‘org.apache.tiles:tiles-servlet:3.0.5’
compile ‘org.apache.tiles:tiles-jsp:3.0.5’
compile ‘org.apache.tiles:tiles-request-api:1.0.6’

//Spring security jars

compile ‘org.springframework.security:spring-security-acl:4.2.0.RELEASE’
compile ‘org.springframework.security:spring-security-config:4.2.0.RELEASE’
compile ‘org.springframework.security:spring-security-core:4.2.0.RELEASE’
compile ‘org.springframework.security:spring-security-taglibs:4.2.0.RELEASE’
compile ‘org.springframework.security:spring-security-web:4.2.0.RELEASE’

//commons
compile ‘commons-io:commons-io:2.4’
compile ‘commons-fileupload:commons-fileupload:1.3.2’
compile ‘commons-codec:commons-codec:1.10’

testCompile("junit:junit")
compile("org.springframework.boot:spring-boot-starter-logging")
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("org.subethamail:subethasmtp-wiser:1.2") {
	exclude group: 'javax.servlet', module: 'servlet-api'
}
compile("javax.servlet:jstl")

}

Hi,

In a Spring boot application you would also need at least:

compile(‘org.flowable:flowable5-spring-compatibility:6.1.0’)

Best regards,

Tijs

Thanks for quick reply…
Added , but still getting exact same error…
Please advice

Hi,

Is it possible to share the full source code? I’m interested in the exact import statements etc.

Best regards,

Tijs