<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Autowired not working with custom service bean for activiti custom REST API application. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/autowired-not-working-with-custom-service-bean-for-activiti/m-p/38562#M16218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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)}" .&amp;nbsp; 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&amp;nbsp;activiti-app.&amp;nbsp; It is very simple Spring app as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Introduce a @RestController class, inside it has&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;@RestController&lt;BR /&gt;public class &lt;/SPAN&gt;TranslationStatusController {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;private static &lt;/SPAN&gt;Logger &lt;SPAN style="color: #660e7a;"&gt;logger &lt;/SPAN&gt;= (Logger) LoggerFactory.&lt;SPAN&gt;getLogger&lt;/SPAN&gt;(TranslationStatusController.&lt;SPAN style="color: #000080; font-weight: bold;"&gt;class&lt;/SPAN&gt;);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #808000;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;TranslationService &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;translationService&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2:&amp;nbsp; The&amp;nbsp;TranslationService is in package&amp;nbsp;com.activiti.extension.service.TranslationService, and is annotated with @Service, it is just a regular spring service class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3: There is a spring boot app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #808000;"&gt;@SpringBootApplication&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808000;"&gt;@EnableAutoConfiguration&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;public class &lt;/SPAN&gt;App {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Very simple spring boot application,&amp;nbsp;the problem is why&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;com.activiti.extension.service.TranslationService is not automatically picked up?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 23:27:00 GMT</pubDate>
    <dc:creator>justinwazhang</dc:creator>
    <dc:date>2018-02-06T23:27:00Z</dc:date>
    <item>
      <title>Autowired not working with custom service bean for activiti custom REST API application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/autowired-not-working-with-custom-service-bean-for-activiti/m-p/38562#M16218</link>
      <description>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 annot</description>
      <pubDate>Tue, 06 Feb 2018 23:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/autowired-not-working-with-custom-service-bean-for-activiti/m-p/38562#M16218</guid>
      <dc:creator>justinwazhang</dc:creator>
      <dc:date>2018-02-06T23:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Autowired not working with custom service bean for activiti custom REST API application.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/autowired-not-working-with-custom-service-bean-for-activiti/m-p/38563#M16219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure the Java class you have written is inside the package: "com.activiti.extension.bean"&lt;/P&gt;&lt;P&gt;The injections are automatically picked by Activiti if the class is within this package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 14:53:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/autowired-not-working-with-custom-service-bean-for-activiti/m-p/38563#M16219</guid>
      <dc:creator>paiyyavj13</dc:creator>
      <dc:date>2018-02-09T14:53:43Z</dc:date>
    </item>
  </channel>
</rss>

