10 Replies Latest reply on Feb 3, 2017 9:34 AM by fernandocantu

    WARN  XXX failed and will not be available for authoring.

    fernandocantu

      Hello, I am trying to create a new service task which will send text messages to a phone. To do this I created maven project which would send text message and I import it to Jboss BPM suit as a jar file

      The maven project looks like this:

      package org.jugvale.jbpm.workitemhandler;
      import org.drools.core.process.instance.WorkItemHandler;
      import org.kie.api.runtime.process.WorkItem;
      import org.kie.api.runtime.process.WorkItemManager;
      import com.twilio.Twilio;
      import com.twilio.rest.api.v2010.account.Message;
      import com.twilio.type.PhoneNumber;
      import java.net.URI;
      import java.net.URISyntaxException;
      
      
      public class SMSWorkItemHandler implements WorkItemHandler {
        public static final String ACCOUNT_SID = "XXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        public static final String AUTH_TOKEN = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        public static final String FROM = "##################";
      // the XXXXXXXX is not an error I just can't give this information.
        public void abortWorkItem(WorkItem wi, WorkItemManager wim) {
        System.out.println("Oh something went wrong");
      
        }
      
      
        public void executeWorkItem(WorkItem wi, WorkItemManager wim) {
      
        String to = (String)wi.getParameter("TO");
        String text = (String)wi.getParameter("TEXT");
        String MediaUrl = (String)wi.getParameter("MEDIA_URL");
      
        assert to != null: "to can't be null";
        assert text != null: "text cant be null";
      
        if(MediaUrl == null){
      
        SendSMS(to,text);
        }
        else {
        SendSMS(to,text,MediaUrl);
        }
      
        System.out.println("Message has been succesfully sent");
        System.out.println("To: "+to);
        System.out.println("From: "+FROM);
        System.out.println("Text: "+text);
        System.out.println("MediaUrl: "+MediaUrl);
        wim.completeWorkItem(wi.getId(), null);
        }
      
        public void SendSMS(String to, String text)
        {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
      
        Message message = Message
                   .creator(new PhoneNumber(to),  // to
                            new PhoneNumber(FROM),  // from
                            text)
                   .create();
        }
        public void SendSMS(String to, String text, String MediaURL)
        {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        try {
        Message message = Message
                   .creator(new PhoneNumber("to"),  // to
                            new PhoneNumber(FROM),  // from
                            text)
                   .setMediaUrl(new URI(MediaURL))
                   .create();
        } catch (URISyntaxException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
        }
        }
      }
      

       

      and here is how my POM looks

       

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

        <modelVersion>4.0.0</modelVersion>

       

       

        <groupId>org.jugvale.jbpm.workitemhandler</groupId>

        <artifactId>sms-sender</artifactId>

        <version>1.0.2</version>

        <packaging>jar</packaging>

       

       

        <name>sms-sender</name>

       

       

        <properties>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        </properties>

       

       

        <dependencies>

        <dependency>

        <groupId>org.jbpm</groupId>

        <artifactId>jbpm-flow</artifactId>

        <version>6.0.1.Final</version>

        <scope>provided</scope>

        </dependency>

        <dependency>

        <groupId>com.twilio.sdk</groupId>

        <artifactId>twilio</artifactId>

        <version>(7.0,7.9)</version>

        </dependency>

        <dependency>

          <groupId>com.google.guava</groupId>

          <artifactId>guava</artifactId>

          <version>18.0</version>

        </dependency>

        <dependency>

        <groupId>joda-time</groupId>

        <artifactId>joda-time</artifactId>

        <version>2.5</version>

        </dependency>

        <dependency>

        <groupId>io.jsonwebtoken</groupId>

        <artifactId>jjwt</artifactId>

        <version>0.4</version>

        </dependency>

        <dependency>

        <groupId>org.apache.httpcomponents</groupId>

        <artifactId>httpclient</artifactId>

        <version>4.5.2</version>

        </dependency>

        <dependency>

        <groupId>org.apache.httpcomponents</groupId>

        <artifactId>httpcore</artifactId>

        <version>4.4.4</version>

        </dependency>

        <dependency>

        <groupId>com.fasterxml.jackson.core</groupId>

        <artifactId>jackson-core</artifactId>

        <version>2.4.3</version>

        </dependency>

        <dependency>

        <groupId>com.fasterxml.jackson.core</groupId>

        <artifactId>jackson-annotations</artifactId>

        <version>2.4.3</version>

        </dependency>

        <dependency>

        <groupId>com.fasterxml.jackson.core</groupId>

        <artifactId>jackson-databind</artifactId>

        <version>2.4.3</version>

        </dependency>

        <dependency>

        <groupId>javax.xml.bind</groupId>

        <artifactId>jaxb-api</artifactId>

        <version>2.2</version>

        </dependency>

        <dependency>

        <groupId>org.jmockit</groupId>

        <artifactId>jmockit</artifactId>

        <version>1.12</version>

        <scope>test</scope>

        </dependency>

        <dependency>

        <groupId>junit</groupId>

        <artifactId>junit</artifactId>

        <version>4.11</version>

        <scope>test</scope>

        </dependency>

        <dependency>

        <groupId>commons-logging</groupId>

        <artifactId>commons-logging</artifactId>

        <version>1.2</version>

        </dependency>

        <dependency>

        <groupId>org.codehaus.jackson</groupId>

        <artifactId>jackson-core-asl</artifactId>

        <version>1.9.3</version>

        </dependency>

        <dependency>

        <groupId>org.kie</groupId>

        <artifactId>kie-internal</artifactId>

        <version>6.0.1.Final</version>

        </dependency>

        <dependency>

        <groupId>org.apache.commons</groupId>

        <artifactId>commons-lang3</artifactId>

        <version>3.3.2</version>

        </dependency>

        </dependencies>

      </project>

       

      So when I add the text messaging jar as a dependency to my project I get a bunch of warnings saying:

       

      09:08:19,779 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.Service$State$4 failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,779 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.Service$State$6 failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,782 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.Striped$SmallLazyStriped failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,786 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.ServiceManager$ServiceListener failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,810 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.Striped$LargeLazyStriped failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,821 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.Futures$ListFuture$ListFutureRunningState failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,833 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.util.concurrent.ServiceManager failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,858 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.collect.ImmutableMap$IteratorBasedImmutableMap failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,859 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.collect.AbstractMapBasedMultimap$KeySet$1 failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,873 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.collect.DenseImmutableTable$Column failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly.

      09:08:19,874 WARN  [org.kie.workbench.common.services.backend.builder.ClassVerifier] (http-127.0.0.1/127.0.0.1:8080-5) Verification of class com.google.common.collect.FilteredEntryMultimap$Keys failed and will not be available for authoring.Please check the necessary external dependencies for this project are configured correctly. And so on...

       

      This problem was address on the link "Verification of class xxx failed and will not be available for authoring" threw while Build & Deploy in business-centra…

      However, I added the dependencies to my POM and I am still getting this warnings.

       

      Additionally when I build the project and run it. I get and error saying

      java.lang.NoSuchMethodError:org.apache.http.client.methods.RequestBuilder.setCharset(Ljava/nio/charset/Charset;)Lorg/apache/http/client/methods/RequestBuilder;

      This error is address by twilio (the application I use to send text messages) on the link Sample code from the doc don't work  · Issue #296 · twilio/twilio-java · GitHub

      This error is caused by the fact that setCharset was introduced in httpclient 4.4. This problem is fixed in httpclient 4.5.2, which is the one that I am currently using if you look at my POM file.

      Additionally this error doesn't occur when I run the Maven project manually on eclipse. As such this error must be cause due to some interaction between Jboss BPM Suit and my jar file.

       

      Do you guys have any idea of what could be happening?

       

      Message was edited by: Fernando Pena Cantu

        • 1. Re: WARN  XXX failed and will not be available for authoring.
          abhijithumbe

          In place of adding custom workItem jar as project dependency, place jar file under WEB-INF/lib directory, register workItemHandler through kie-deployment-descriptor.xml file.

          • 2. Re: WARN  XXX failed and will not be available for authoring.
            fernandocantu

            Thanks for the reply Abhijit Humbe,

             

            I am quite new to Jboss BPM suit could please specify where do I find this WEB-INF/lib directory and the kie-deployment-descriptor.xml, because I was able to find around 10 of them. Are you talking about the WEB-INF inside standalone\deployments\business-central.war ?

            • 3. Re: WARN  XXX failed and will not be available for authoring.
              dmarrazzo

              Yes, Business Central one.

              But you have to remember to repeat the same operation in the test/production server for the runtime. In other words, if you are going to use the kieserver for the runtime, you should install it even in the WEB-INF of the kieserver.

              • 4. Re: WARN  XXX failed and will not be available for authoring.
                fernandocantu

                Thanks Donato, Do you also know how would I register the work item handler thought the kie-deployments-descriptor.

                 

                Would it be something like this:

                <work-item-handler>

                      <resolver>mvel</resolver>

                      <identifier>new org.jugvale.jbpm.workitemhandler.SMSWorkItemHandler (ksession, classLoader)</identifier>

                      <parameters/>

                      <name>Log</name>

                </work-item-handler>

                 

                What is ksession and classLoader? Also what should I put inside parameters? considering my program has 3 string values as parameters in the wid.

                • 5. Re: WARN  XXX failed and will not be available for authoring.
                  abhijithumbe

                  Yes, you can register custom work IteamHandler like this only. kiesession and classloader are the constructor parameters for customWorkItemHandler. If you are have similar constructor for your WorkItemHandler class then you have to pass it otherwise no need to pass anything.

                  • 6. Re: WARN  XXX failed and will not be available for authoring.
                    fernandocantu

                    So I added the Jar file to the WEB-INF/lib directory inside business-central.war and the kieserver. Then I register the work item handler in kie-deployments-descriptor by adding :

                     

                    <work-item-handler>

                          <resolver>mvel</resolver>

                          <identifier>new org.jugvale.jbpm.workitemhandler.SMSWorkItemHandler()</identifier>

                          <parameters/>

                          <name>SMS</name>

                      </work-item-handler>

                     

                    However, when I start the standalone server i get this error:

                     

                    WARN  [org.jbpm.kie.services.impl.KModuleDeploymentService] (http-127.0.0.1/127.0.0.1:8080-1) Unexpected error while deploying unit com.myrepository.learnprojects:smsSender:1.0: java.lang.RuntimeException: [Error: com/twilio/rest/api/v2010/account/Message]

                    [Near : {... new org.jugvale.jbpm.workitemhandl ....}]

                                     ^

                    [Line: 1, Column: 5]

                      at org.jbpm.kie.services.impl.AbstractDeploymentService.commonDeploy(AbstractDeploymentService.java:161) [jbpm-kie-services-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:196) [jbpm-kie-services-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-services-cdi-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.java:194) [jbpm-console-ng-business-domain-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.java:158) [jbpm-console-ng-business-domain-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.process(DeploymentManagerEntryPointImpl.java:517) [jbpm-console-ng-business-domain-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.process(DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.doBuildAndDeploy(BuildServiceImpl.java:164) [kie-wb-common-services-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:120) [kie-wb-common-services-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at org.kie.workbench.common.services.backend.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java) [kie-wb-common-services-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_71]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_71]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_71]

                      at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_71]

                      at org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:24) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.cdi.server.CDIExtensionPoints$2.callback(CDIExtensionPoints.java:396) [errai-weld-integration-3.0.6.Final-redhat-1.jar:3.0.6.Final-redhat-1]

                      at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:296) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:142) [errai-bus-3.2.4.Final-redhat-1.jar:3.2.4.Final-redhat-1]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.uberfire.ext.security.server.SecureHeadersFilter.doFilter(SecureHeadersFilter.java:69) [uberfire-servlet-security-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.uberfire.ext.security.server.SecurityIntegrationFilter.doFilter(SecurityIntegrationFilter.java:57) [uberfire-servlet-security-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:512) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

                      at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:419) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]

                      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]

                    Caused by: [Error: com/twilio/rest/api/v2010/account/Message]

                    [Near : {... new org.jugvale.jbpm.workitemhandl ....}]

                     

                    additionally when I try to deploy my application I got an error saying :

                     

                    Deployment of unit com.myrepository.learnprojects:smsSender:1.0 failed: java.lang.RuntimeException: [Error: com/twilio/rest/api/v2010/account/Message] [Near : {... new org.jugvale.jbpm.workitemhandl ....}] ^ [Line: 1, Column: 5]

                     

                    Have I missed any steps?

                    • 7. Re: WARN  XXX failed and will not be available for authoring.
                      abhijithumbe

                      Can you share complete  kie-deployments-descriptor.xml file with us.

                      • 8. Re: WARN  XXX failed and will not be available for authoring.
                        fernandocantu

                        This my current kie-deployments-descriptor.xml:

                         

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

                        <deployment-descriptor xsi:schemaLocation="http://www.jboss.org/jbpm deployment-descriptor.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                          <persistence-unit>org.jbpm.domain</persistence-unit>

                          <audit-persistence-unit>org.jbpm.domain</audit-persistence-unit>

                          <audit-mode>JPA</audit-mode>

                          <persistence-mode>JPA</persistence-mode>

                          <runtime-strategy>SINGLETON</runtime-strategy>

                          <marshalling-strategies/>

                          <event-listeners/>

                          <task-event-listeners/>

                          <globals/>

                          <work-item-handlers>

                            <work-item-handler>

                              <resolver>mvel</resolver>

                              <identifier>new org.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession, classLoader)</identifier>

                              <parameters/>

                              <name>Service Task</name>

                            </work-item-handler>

                            <work-item-handler>

                              <resolver>mvel</resolver>

                              <identifier>new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler()</identifier>

                              <parameters/>

                              <name>Log</name>

                            </work-item-handler>

                            <work-item-handler>

                              <resolver>mvel</resolver>

                              <identifier>new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession, classLoader)</identifier>

                              <parameters/>

                              <name>WebService</name>

                            </work-item-handler>

                            <work-item-handler>

                              <resolver>mvel</resolver>

                              <identifier>new org.jbpm.process.workitem.rest.RESTWorkItemHandler(classLoader)</identifier>

                              <parameters/>

                              <name>Rest</name>

                            </work-item-handler>

                        <work-item-handler>

                              <resolver>mvel</resolver>

                              <identifier>new org.jugvale.jbpm.workitemhandler.SMSWorkItemHandler()</identifier>

                              <parameters/>

                              <name>SMS</name>

                          </work-item-handler>

                          </work-item-handlers>

                          <environment-entries/>

                          <configurations/>

                          <required-roles/>

                          <remoteable-classes/>

                          <limit-serialization-classes>true</limit-serialization-classes>

                        </deployment-descriptor>

                         

                         

                         

                        is there anything else you guys may need?

                        • 9. Re: WARN  XXX failed and will not be available for authoring.
                          dmarrazzo

                          In the previous configuration (without the jar in WEB-INF), were you able to run the WIH?

                          • 10. Re: WARN  XXX failed and will not be available for authoring.
                            fernandocantu

                            I was able to build and deploy it but I got an error when I started an instance.