3 Replies Latest reply on Oct 9, 2013 11:40 AM by Maciej Swiderski

    jBPM v6 CR2 - REST API for starting process instances?

    Marek Baczyński Newbie

      Hi,

       

      I'm looking at using jBPM in a heavily automated environment with heterogeneous architecture (i.e. jBPM would probably be the only Java system). I'm trying to use v6 (installed with install.demo) since it looks like a huge improvement from v5.4, which didn't quite work in demo mode on my corporate machine.

       

      After considerable googling I found a couple of links which are of direct interest:

       

      https://github.com/mrietveld/droolsjbpm-integration/wiki/Rest-API

      http://stackoverflow.com/questions/19119874/how-to-start-a-process-deployed-in-jbpm-console-from-my-own-rest-service

       

      In the first link there are no examples, so I tried to figure out something on my own, with following results:

       

      http://localhost:8080/jbpm-console/rest/

          FAILURE    /jbpm-console/rest/    Could not find resource for relative : / of full path: http://localhost:8080/jbpm-console/rest/    org.jboss.resteasy.spi.NotFoundException: Could not find resource for relative : / of full path: http://localhost:8080/jbpm-console/rest/
           at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:360)
           at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:374)
           at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:367)
           at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:307)
           at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:173)
           at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:118)
           at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
           at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
           at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:266)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:416)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
           at java.lang.Thread.run(Thread.java:724)
      

      Is there something I'm missing? Do I need to do anything in config files? I'm not a Java EE developer, so even making jBPM start was kind of an achievement (due to having to add corporate proxy to a specific place in build.xml which was not described anywhere).