Bug 1300084

Summary: [one-off] avoid the class loader being overridden by cxf dynamic client in WebServiceWorkItemHandler
Product: [Retired] JBoss BPMS Platform 6 Reporter: Gary Hu <ghu>
Component: jBPM CoreAssignee: Gary Hu <ghu>
Status: CLOSED EOL QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.3   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:12:10 UTC Type: Support Patch
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gary Hu 2016-01-19 22:52:46 UTC
When use the WS service task in a process triggered by quartz timer, the following errors are thrown intermittently:

Caused by: java.lang.NoSuchMethodException: xxx(xxx)

Actually, the soap interface does implement the method it is complaining.

This is caused by cxf dynamic client that overrides the class loader set by jbpm. 

This one-off patch aims to fix the issue in class: org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler

The fix is done in https://github.com/droolsjbpm/jbpm/commit/36fb962e1c015b0bd6298c74b1804d790de61be4 which is applied in bpms 6.1.