4 Replies Latest reply on Jun 10, 2013 4:05 AM by Massimiliano Izzo

    jBPM 5.1 without HumanTask Service

    Massimiliano Izzo Newbie

      Hi,

       

      I am using the jBPM 5.1.

      I am using this version because I have JBoss AS5 on a production environment, and I tested the jBPM 5.1 final as the only version fully compatible with AS5, in terms of

       

      jBPM console server

      drools-guvnor

      designer

       

      The problem is that the ant start.demo script launches also the human task service, but I don't want/need the human task service. How to disable this service without receiving the following error?

       

      2013-06-03 18:31:48,967 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gwt-console-server].[Resteasy]] (http-0.0.0.0-8080-2) Servlet.service() for servlet Resteasy threw exception

      org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not connect task client

                at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)

                at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)

                at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)

                at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)

                at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)

                at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)

                at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)

                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)

                at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.IllegalArgumentException: Could not connect task client

                at org.jbpm.integration.console.TaskManagement.connect(TaskManagement.java:66)

                at org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:179)

                at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)

                at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)

                at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)

                at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)

                at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)

                at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)

                ... 28 more

       

      Basically, I need only my WorkItemHandler registered with the jBPM Console, and I don't need the Human Tasks persistence.

       

      Thanks in advance

        • 1. Re: jBPM 5.1 without HumanTask Service
          Ashish T Newbie

          Do you mean to say you dont want to use HT component in your application? Mina task server is required for managment of the human task ?  Are all your business processes without human task?

          • 2. Re: jBPM 5.1 without HumanTask Service
            Massimiliano Izzo Newbie

            Yes. I don't want to use the HT component. Indeed, all my business processes don't include the Human tasks, but only asynchronous Service Tasks (domain specific).

            • 3. Re: jBPM 5.1 without HumanTask Service
              Ashish T Newbie

              In build.xml you can see below statment

                <!-- Start Demo (Eclipse) -->

                <target name="start.demo.eclipse" depends="start.eclipse,start.human.task" />

              remove starty.human.task  dependency whcih will not start the human task.

               

               

              As you are not working human task you can remove jbpm-human-task-war.war from Jboss deployment folder

               

               

              Let me know if this works.

              • 4. Re: jBPM 5.1 without HumanTask Service
                Massimiliano Izzo Newbie

                I already removed the start.human task from the build.xml, and I received the error I put in the post #1.

                 

                I am using the jBPM 5.1 version, and there is no jbpm-human-task-war.war in the deploy folder.

                I can see a jbpm-human-task-5.1.0.Final.jar in the WEB-INF/lib directory of the jbpm-gwt-console-server.war, but if I remove this jar, I get the following error

                 

                 

                HTTP 500:

                HTTP Status 500 -


                type Exception report

                message

                description The server encountered an internal error () that prevented it from fulfilling this request.

                exception

                org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.FormDispatcherPlugin: org.jbpm.integration.console.forms.FormDispatcherComposite org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 

                 

                root cause

                java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.FormDispatcherPlugin: org.jbpm.integration.console.forms.FormDispatcherComposite org.jboss.bpm.console.server.util.ServiceLoader.loadFromServices(ServiceLoader.java:94) org.jboss.bpm.console.server.util.ServiceLoader.loadService(ServiceLoader.java:56) org.jboss.bpm.console.server.plugin.PluginMgr.load(PluginMgr.java:54) org.jboss.bpm.console.server.InfoFacade.getServerStatus(InfoFacade.java:83) org.jboss.bpm.console.server.InfoFacade.getServerInfo(InfoFacade.java:72) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 

                 

                root cause

                java.lang.NoClassDefFoundError: org/jbpm/task/service/TaskClientHandler$GetTaskResponseHandler org.jbpm.integration.console.forms.FormDispatcherComposite.<init>(FormDispatcherComposite.java:32) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) java.lang.Class.newInstance0(Class.java:355) java.lang.Class.newInstance(Class.java:308) org.jboss.bpm.console.server.util.ServiceLoader.loadFromServices(ServiceLoader.java:89) org.jboss.bpm.console.server.util.ServiceLoader.loadService(ServiceLoader.java:56) org.jboss.bpm.console.server.plugin.PluginMgr.load(PluginMgr.java:54) org.jboss.bpm.console.server.InfoFacade.getServerStatus(InfoFacade.java:83) org.jboss.bpm.console.server.InfoFacade.getServerInfo(InfoFacade.java:72) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 

                 

                root cause

                java.lang.ClassNotFoundException: org.jbpm.task.service.TaskClientHandler$GetTaskResponseHandler from BaseClassLoader@1437a6d{vfszip:/C:/Progetti/SEA/CDM/Progetto/jbpm-installer/jboss-as/server/default/deploy/jbpm-gwt-console-server.war/} org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477) java.lang.ClassLoader.loadClass(ClassLoader.java:252) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) org.jbpm.integration.console.forms.FormDispatcherComposite.<init>(FormDispatcherComposite.java:32) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) java.lang.Class.newInstance0(Class.java:355) java.lang.Class.newInstance(Class.java:308) org.jboss.bpm.console.server.util.ServiceLoader.loadFromServices(ServiceLoader.java:89) org.jboss.bpm.console.server.util.ServiceLoader.loadService(ServiceLoader.java:56) org.jboss.bpm.console.server.plugin.PluginMgr.load(PluginMgr.java:54) org.jboss.bpm.console.server.InfoFacade.getServerStatus(InfoFacade.java:83) org.jboss.bpm.console.server.InfoFacade.getServerInfo(InfoFacade.java:72) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117) org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166) org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) 

                 

                note The full stack trace of the root cause is available in the JBoss Web/2.1.10 logs.


                JBoss Web/2.1.10

                 

                I would like to understand which is the configuration file that instructs the jbpm console to look for the human task service.