NoClassDefFoundError in jar plugin.

Hello, I’ve created my own user task parse listener plugin with jwt lib java-jwt-4.4.0.
On my local machine I’ve put both files: builded jar plugin and java-jwt-4.4.0.jar to configuration/userlib folder and everything worked well.
Now, I’m trying to deploy this in docker and found only lib folder to store jar files. From this folder my plugin worked well without jwt lib, but now I have NoClassDefFoundError, because camunda cannot find java-jwt-4.4.0.jar. How can I fix this issue?

Hello my friend!
Welcome to the community!

Have you explicitly declared your plugin in docker?

Because it probably shouldn’t appear as a dependency in your maven or gradle, and so you must declare it manually in the dockerfile.

William Robert Alves