2 Replies Latest reply on Feb 19, 2016 11:48 AM by f.gazzo

    jbpm in wildlfy no rest working

    jmiguel77

      Hi

       

      I have deployed jbpm 6.3 in wildfly-8.2.1.Final and wildfly-9.0.2.Final

      The workbench is working ok, i can create a process and run it, with human tasks, script tasks and everything

      The problem is that the rest api doesnt seem to be working

       

      I followed this steps:

      Accelerate your business: Installing KIE Server and Workbench on same server

       

      But when i try to access the url http://127.0.0.1:8080/kie-wb/rest/task/query

       

      I get an exception like this:

       

      17:22:27,064 WARN [org.jboss.resteasy.core.ExceptionHandler] (default task-45) failed to execute: javax.ws.rs.ForbiddenException: HTTP 403 Forbidden

      at org.jboss.resteasy.plugins.interceptors.RoleBasedSecurityFilter.filter(RoleBasedSecurityFilter.java:45) [resteasy-jaxrs-3.0.10.Final.jar:]

      at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:264) [resteasy-jaxrs-3.0.10.Final.jar:]

      at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:250) [resteasy-jaxrs-3.0.10.Final.jar:]

      ..............................


      And if i try to access this url http://127.0.0.1:8080/kie-wb/rest/runtime/com.lidapsi:autorizacion:1.0/history/instances


      i get an exception like this


      16:58:39,065 WARN [org.jboss.resteasy.core.ExceptionHandler] (default task-56) failed to execute: javax.ws.rs.NotFoundException: Could not find resource for full path: http://127.0.0.1:8080/kie-wb/rest/runtime/com.lidapsi:autorizacion:1.0/history/instances

      at org.jboss.resteasy.core.registry.SegmentNode.match(SegmentNode.java:112)

      at org.jboss.resteasy.core.registry.RootNode.match(RootNode.java:43)

      at org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)

      at ........................


      Also, while the server is starting, in the wildfly log i can see many entries like this


      2016-01-26 17:18:36,504 WARN [org.kie.server.services.impl.controller.DefaultRestControllerImpl] (MSC service thread 1-1) Exception encountered while syncing with controller at http://127.0.0.1:8080/kie-wb/rest/controller/server/wildfly-kieserver error Error while sending PUT request to http://127.0.0.1:8080/kie-wb/rest/controller/server/wildfly-kieserver response code 405


      I don't know if am missing any configuration; i created users with admin permissions and use those users to access the remote api; also this url http://127.0.0.1:8080/kie-server/services/rest/server

      gives me this answer:

      <response type="SUCCESS" msg="Kie Server info">

      <kie-server-info>

      <capabilities>BPM</capabilities>

      <capabilities>KieServer</capabilities>

      <capabilities>BRM</capabilities>

      <location>http://127.0.0.1:8080/kie-server/services/rest/server</location>

      <name>wildfly-kieserver</name>

      <id>wildfly-kieserver</id>

      <version>6.3.0.Final</version>

      </kie-server-info>

      </response>


      I am running the server using oracle jdk1.7.0_51, i will try to run it with jdk8 to see what happens


      Any help would be greatly appreciated