Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1409

WebService Task execution fails with ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.GA
    • 7.0.0.GA
    • None
    • RHEL 7.5, EAP 7.1.0, PAM 7.0.0

    • Hide

      1. Setup PAM in EAP 7.1.0.
      2. Create a one step business process in business central with a WebService Task in it and set suitable data assignments for the WebService Task
      3. Set the work item handler as org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler for the WebService Task
      4. Build, deploy and create an instance of the business process.

      Show
      1. Setup PAM in EAP 7.1.0. 2. Create a one step business process in business central with a WebService Task in it and set suitable data assignments for the WebService Task 3. Set the work item handler as org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler for the WebService Task 4. Build, deploy and create an instance of the business process.

      WebService task execution in a business process fails with the error [1] (stated below) when using org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler.

      [1] "Unexpected error occurred: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/containers/sample-ws-call_1.0.0/processes/sample-ws-call.InvokeWSProcess/instances'! Error code: 500, message: "Unable to create response: [sample-ws-call.InvokeWSProcess:2 - WS:2] – java.lang.ClassCastException: Cannot cast org.apache.cxf.wsdl11.WSDLManagerImpl to org.apache.cxf.wsdl.WSDLManager"
      "
      This error is due to the fact that there are 2 different versions of cxf*.jars that gets loaded into the runtime - one from EAP modules and the other from kie-server.war/WEB-INF/lib

            swiderski.maciej Maciej Swiderski (Inactive)
            balki404 Balakrishnan Balasubramanian
            Marian Macik Marian Macik
            Marian Macik Marian Macik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: