# ServiceTask - FlowableClassLoadingException: Could not load class

**URL:** <https://forum.flowable.org/t/servicetask-flowableclassloadingexception-could-not-load-class/1355>\
**Category:** Flowable Application\
**Created:** [December 20, 2017, 3:11pm UTC](https://forum.flowable.org/t/servicetask-flowableclassloadingexception-could-not-load-class/1355 "2017-12-20T15:11:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seq2seq](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@seq2seq](https://forum.flowable.org/u/seq2seq)\
**Post date:** [December 20, 2017, 3:11pm UTC](https://forum.flowable.org/t/servicetask-flowableclassloadingexception-could-not-load-class/1355/1 "2017-12-20T15:11:04Z")

</div>

I have a ServiceTask referencing my own class org.flowable.Cases.

I developed this Java class using Eclipse with Maven, and got the Jar using the Create Deployment Artifacts option, put this Jar in the tomcat/lib folder, and restarted Tomcat

I’m getting the following error when the execution of the process reaches the ServiceTask:

Caused by: org.flowable.engine.common.api.FlowableClassLoadingException: Could not load class: org.flowable.Cases  
at org.flowable.engine.common.impl.util.ReflectUtil.loadClass(ReflectUtil.java:90)  
at org.flowable.engine.common.impl.util.ReflectUtil.instantiate(ReflectUtil.java:137)  
… 107 more  
Caused by: java.lang.NoClassDefFoundError: org/flowable/engine/delegate/JavaDelegate

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [December 21, 2017, 8:08am UTC](https://forum.flowable.org/t/servicetask-flowableclassloadingexception-could-not-load-class/1355/2 "2017-12-21T08:08:11Z")

</div>

Hi,

Create deployment artifacts generates a BAR file that can be deployed on the Flowable Engine and includes the BPMN XML file, but not the Java classes.  
You just need to create a normal JAR artifact like you would do with any other Java Maven project. And then just make this JAR file available on the classpath, tomcat/lib or the application WEB-INF/lib folder.

Best regards,

Tijs

---

<div class="post-metadata">

**Author:** ![akki](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@akki](https://forum.flowable.org/u/akki)\
**Post date:** [August 13, 2019, 6:55am UTC](https://forum.flowable.org/t/servicetask-flowableclassloadingexception-could-not-load-class/1355/3 "2019-08-13T06:55:08Z")

</div>

Hi, I’m encountering a similar problem as yours, were you able to resolve the issue?
