3 Replies Latest reply on Jul 13, 2015 5:13 AM by Verny Quartara

    [jBPM6 remote REST API] [RESOLVED] Unable to deploy No Persistence provider for EntityManager named strategy=singleton

    Verny Quartara Newbie

      Hello everybody,

      I'm trying to use REST API to dpeloy a project into jBPM. (refer to: Chapter 17. Remote API)

      I'm using a simple rest client (Google Chrome's Advanced Rest Client).

      I send a POST to http://localhost:8080/jbpm-console/rest/deployment/it.visura:test-bpm:1.0.4/deploy with a form parameter strategy=singleton

       

      I get this error (on the server log):

      2015-07-10 14:59:42,242 ERROR [org.kie.remote.services.rest.async.cmd.DeploymentCmd] (EJB default - 9) Unable to deploy [it.visura:test-bpm:1.0.4]: java.lang.RuntimeException: javax.persistence.PersistenceException: No Persistence provider for EntityManager named strategy=singleton

       

      If I try to deploy the same artifact from KIE workbench everything's fine.

       

      Can someone help me?

       

      Note that other REST calls are executed successfully. For example:

      GET http://localhost:8080/jbpm-console/rest/deployment/it.visura:test-bpm:1.0.4

      returns 200 OK with body:

      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

      <deployment-unit>

      <groupId>it.visura</groupId>

      <artifactId>test-bpm</artifactId>

      <version>1.0.4</version>

      <strategy>SINGLETON</strategy>

      <status>DEPLOY_FAILED</status>

      </deployment-unit>