Bug 1051739
Summary: | Classloader issues integrating with remote BPMS | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Fuse Service Works 6 | Reporter: | Babak Mozaffari <bmozaffa> | ||||
Component: | Rules / jBPM integration | Assignee: | David Ward <dward> | ||||
Status: | MODIFIED --- | QA Contact: | Matej Melko <mmelko> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.0.0 GA | CC: | mbaluch, rcernich, soa-p-jira | ||||
Target Milestone: | DR3 | ||||||
Target Release: | 6.1.0 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Calling a remote Red Hat JBoss Business Process Management System instance requires use of "kie-services-client" in "org.kie.remote". This module is not provided with the product, If users try to call the remote server, a "class not found" exception is recorded in the log.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Babak Mozaffari
2014-01-11 06:13:18 UTC
Just as an addition to the previous stated If one wraps the switchyard composite as a war-file, one needs to - add the kie.jar's as runtime dependencies in the pom.xml - exclude all other jars like jackson-*.jar, etc - create a manifest to define the dependency to all other required jars This, at the end, still brings some kind of class-loader issue Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.kie.services.client.api.command.AcceptedCommands at org.kie.services.client.api.command.AbstractRemoteCommandObject.execute(AbstractRemoteCommandObject.java:92) [kie-services-client-6.0.2-redhat-6.jar:6.0.2-redhat-6] at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:232) [drools-core-6.0.0-redhat-9.jar:6.0.0-redhat-9] which could be caused by a mixup of 6.0.0 ( from FSW ) and 6.0.2 ( from BPM for RestAPI ) libraries. This can be reproduced with https://github.com/PatrickSteiner/Calling_BPM_from_FSW |