hello,
i defined new service on ADMIN-UI. when i want to run app, i get error about dependencies. How can i define dependencies between different package ? how can i fix this problem ?
package org.flowable.ui.admin.service;
import org.flowable.idm.api.RobustaWorkerDefinitionService;
import org.springframework.beans.factory.annotation.Autowired;
/**
-
@author Egemen ALAN
*/
public class RobustaAbstractWorkerService {@Autowired
protected RobustaWorkerDefinitionService robustaWorkerDefinitionService ;
package org.flowable.idm.api;
import java.util.List;
public interface RobustaWorkerDefinitionService {
package org.flowable.ui.admin.service;
@Service
@Transactional
public class RobustaWorkerServiceImpl extends RobustaAbstractWorkerService implements RobustaWorkerService {
2019-03-19 16:25:19.310 WARN 15556 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘robustaWorkerServiceImpl’: Unsatisfied dependency expressed through field ‘robustaWorkerDefinitionService’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.flowable.idm.api.RobustaWorkerDefinitionService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2019-03-19 16:25:19.343 INFO 15556 — [ restartedMain] o.a.c.c.StandardService : Stopping service [Tomcat]
2019-03-19 16:25:19.372 INFO 15556 — [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-03-19 16:25:20.779 ERROR 15556 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Field robustaWorkerDefinitionService in org.flowable.ui.admin.service.RobustaWorkerServiceImpl required a bean of type ‘org.flowable.idm.api.RobustaWorkerDefinitionService’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘org.flowable.idm.api.RobustaWorkerDefinitionService’ in your configuration.