Unable to find javascript resource on Widlfly

Hello. I have deployed a Java EE process application to Wildfly 10. I am getting the following error when trying to execute a Script task:

ENGINE-14006 Exception while executing job 3ffe059b-5255-11e8-867a-f8cab804730f: : org.camunda.bpm.engine.exception.NotFoundException: ENGINE-09024 Unable to find resource at path script.js

script.js is located at the root of my src/main/resources directory alongside the .bpmn file that references it.

I have not provided any additional configuration for scripting. Would you please advise if I have missed an installation or configuration step?


The issue was that the .js files were located in a subfolder of the src/main/resources folder. After moving to the root, the issue was resolved.