-
1. Re: [jBPM6 remote REST API] Unable to deploy No Persistence provider for EntityManager named strategy=singleton
swiderski.maciej Jul 13, 2015 1:48 AM (in response to vquartara)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:
HTH
-
2. Re: [jBPM6 remote REST API] Unable to deploy No Persistence provider for EntityManager named strategy=singleton
vquartara Jul 13, 2015 4:23 AM (in response to swiderski.maciej)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
server stacktrace:
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:
<deployment-job-result>
<identifier>5</identifier><operation>DEPLOY</operation>
<deploymentUnit>
<groupId>it.visura</groupId></deploymentUnit><artifactId>test-bpm</artifactId>
<version>1.0.4</version>
<strategy>SINGLETON</strategy>
<status>ACCEPTED</status>
<success>true</success>
<explanation>deploy job accepted.</explanation>
</deployment-job-result>
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?
-
3. Re: [jBPM6 remote REST API] Unable to deploy No Persistence provider for EntityManager named strategy=singleton
vquartara Jul 13, 2015 5:13 AM (in response to vquartara)RESOLVED
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).