you can skip the strategy parameter as this is default strategy any way.
Strategy param should be query param so it should be appended to the URL:
If I append strategy param to the URL the result is 400 Bad Request
If I skip the strategy param the result is 400 Bad Request
WARN [org.jboss.resteasy.core.ExceptionHandler] (default task-102) failed to execute: javax.ws.rs.BadRequestException: HTTP 400 Bad Request
Caused by: javax.ws.rs.core.NoContentException: No content. Content-Length is 0
the only way to get a 2xx is to send strategy parameter as payload. this way I get 202 Accepted with response:
<explanation>deploy job accepted.</explanation>
but when I check the server log I see the mentioned exception (javax.persistence.PersistenceException: No Persistence provider for EntityManager named strategy=singleton)
What can I do? I don't understand the error. What jBPM tries to do when it receive the request?
the problem was in Request Content-Type: must be application/json (I was using text/plain)
using correct content-type no parameter is needed (defaults are used).