AnsweredAssumed Answered

Autowired not working with custom service bean for activiti custom REST API application.

Question asked by justinwazhang on Feb 6, 2018
Latest reply on Feb 9, 2018 by paiyyavj13

Hello, I am new to activiti, and is in the process of trying to develop a Activiti custom REST application, but I get the famous "No qualifying bean of type 'com.activiti.extension.service.TranslationService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}" .  when I am issuing the rest call through Postman after I deployed the jar under the web-inf/lib folder for activiti-app in tomcat and restart the activiti-app.  It is very simple Spring app as follows:


1: Introduce a @RestController class, inside it has

public class
TranslationStatusController {
    private static Logger logger = (Logger) LoggerFactory.getLogger(TranslationStatusController.class);

    TranslationService translationService;


2:  The TranslationService is in package com.activiti.extension.service.TranslationService, and is annotated with @Service, it is just a regular spring service class


3: There is a spring boot app

public class App {



Very simple spring boot application, the problem is why 

 com.activiti.extension.service.TranslationService is not automatically picked up? 



Thank you in advance.