# TaskListner Class Not Found

**URL:** <https://forum.flowable.org/t/tasklistner-class-not-found/8369>\
**Category:** Flowable Engine\
**Created:** [September 7, 2021, 8:06am UTC](https://forum.flowable.org/t/tasklistner-class-not-found/8369 "2021-09-07T08:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psychicDivine](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/psychicdivine/32/2561_2.png) [@psychicDivine](https://forum.flowable.org/u/psychicDivine)\
**Post date:** [September 7, 2021, 8:06am UTC](https://forum.flowable.org/t/tasklistner-class-not-found/8369/1 "2021-09-07T08:06:20Z")

</div>

Currently, We have 2 flowable engines running and sync through DB.

1. flowable-ui for the modeler
2. Spring boot app Custome Rest API Setup  
Now we have created a spring boot app For Tasklistner Delegate implementation which we have added as a jar at “ **flowable-ui\WEB-INF\lib** ” .

Now while starting up Flowbale UI is throwing **a class not found error**.

_ **Unable to read meta-data for class com.delegates.ServiceConfig** _

_**Caused by: java.io.FileNotFoundException: class path resource [com/delegates/ServiceConfig.class] cannot be opened because it does not exist**_

It’s not able to initiate my delegate class I guess I’m missing something on Autoconfig’s side while creating beans.

> Attaching files  
> **File ServiceConfig.java**  
> package com.delegates;  
> import org.flowable.form.engine.configurator.FormEngineConfigurator;  
> import org.flowable.spring.SpringProcessEngineConfiguration;  
> import org.flowable.spring.boot.ProcessEngineConfigurationConfigurer;  
> import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;  
> import org.springframework.context.annotation.Bean;  
> import org.springframework.context.annotation.Configuration;  
> `@Configuration`  
> public class ServiceConfig {  
> `@Bean`  
> `@ConditionalOnMissingBean`(TaskCompleteListener.class)  
> public TaskCompleteListener firstServiceTask() {  
> return new TaskCompleteListener();  
> }

```
@Bean
public ProcessEngineConfigurationConfigurer configurationConfigurer() {
    return new ProcessEngineConfigurationConfigurer() {
        public void configure(SpringProcessEngineConfiguration processEngineConfiguration) {
            processEngineConfiguration.addConfigurator(new FormEngineConfigurator());
        }
    };
}

```

}

**File TaskCompleteListener.java**

package com.delegates;  
import org.flowable.engine.delegate.TaskListener;  
import org.flowable.task.service.delegate.DelegateTask;  
import org.springframework.stereotype.Component;  
`@Component`(“taskCompleteListener”)  
public class TaskCompleteListener implements TaskListener {  
public void notify(DelegateTask delegateTask) {  
System.out.println(“Complete”);  
}  
}

**file =\> resources\META-INF\spring.factories**  
`# Auto Configuration Import Filters`  
org.springframework.boot.autoconfigure.EnableAutoConfiguration=  
com.delegates.ServiceConfig

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [September 21, 2021, 11:38am UTC](https://forum.flowable.org/t/tasklistner-class-not-found/8369/2 "2021-09-21T11:38:44Z")

</div>

Hey @psychicDivine,

Are you sure that the `ServiceConfig` class is part of the jar you have added?

It feels like it isn’t.

Cheers,  
Filip
