I am using camunda 8. i amreceiving an error when i try to start my app that i was not receiving before
"***************************
APPLICATION FAILED TO START
Description:
Field client in com.co.igg.catastro.bpmn.services.impl.ProcessService required a bean of type ‘io.camunda.zeebe.client.ZeebeClient’ that could not be found.
Action:
Consider defining a bean of type ‘io.camunda.zeebe.client.ZeebeClient’ in your configuration.".
This is my code:
"package com.co.igg.catastro.bpmn.services.impl;
import java.net.URLDecoder;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import com.co.igg.catastro.bpmn.services.interfaces.IProcessService;
import com.co.igg.catastro.bpmn.services.interfaces.IProcesoService;
import com.co.igg.catastro.bpmn.services.impl.ProcesoServiceImpl;
import com.co.igg.catastro.common.models.Proceso;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.DeserializationFeature;
import io.camunda.zeebe.client.ZeebeClient;
import io.camunda.zeebe.client.api.response.ProcessInstanceEvent;
import io.camunda.zeebe.client.api.response.ActivatedJob;
import io.camunda.zeebe.client.api.worker.JobClient;
import io.camunda.zeebe.client.api.worker.JobHandler;
import io.camunda.zeebe.client.api.worker.JobWorker;
import org.springframework.http.HttpStatus;
import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.engine.ProcessEngine;
import org.camunda.bpm.engine.ProcessEngineConfiguration;
import org.camunda.bpm.engine.runtime.ActivityInstance;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.TaskService;
import org.camunda.bpm.engine.task.Task;
import org.camunda.bpm.engine.task.TaskQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import java.time.Duration;
@Service
public class ProcessService implements IProcessService {
private final Logger logger = LoggerFactory.getLogger(getClass());
private Variables variables = new Variables();
@Autowired
private IProcesoService procesoService;
@Autowired
private ZeebeClient client;" . and this is my yaml:
"server:
port: 28081
spring.datasource:
url: jdbc:mysql://127.0.0.1:3306/catastro?useSSL=false&&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
driver-class-name: com.mysql.cj.jdbc.Driver
username: ******
password: *******
camunda.bpm:
admin-user:
id: demo
password: demo
database:
type: mysql
Alfresco Server
alfresco:
repository:
url: http://127.0.0.1:8080/alfresco
user: admin
pass: admin
zeebe.client:
cloud:
region: dsm-1
clusterId: bb96a0b4-5154-479e-9309-34dcb51b99f9
clientId: 9Cuz6Dyjsek3en7g1viSGVDMTQu3iH7x
clientSecret: L3i6md.5qHdlOUPU0cgNIjHAL~C4xC-cjrRacRWJzBckH2InsF9tyMuZllaeHXrk
"
i think it could be being caused by this part @EnableFeignClients
@EntityScan({“com.co.igg.catastro.common”})
@EnableJpaRepositories(“com.co.igg.catastro.bpmn.persistence.dao”)
@SpringBootApplication in my main class but i am not sure. any idea of what could be causing this