Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1258880

Summary: Remove @XmlRootElement annotation on top of KieServerCommand
Product: [Retired] JBoss BRMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: Kie-ServerAssignee: Edson Tirelli <etirelli>
Status: CLOSED EOL QA Contact: Karel Suta <ksuta>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: smcgowan
Target Milestone: ER4   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1258945 (view as bug list) Environment:
Last Closed: 2020-03-27 20:10:55 UTC 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:
Bug Depends On:    
Bug Blocks: 1258945    

Description Anton Giertli 2015-09-01 12:56:37 UTC
Description of problem:

KieServerCommand is an interface annotated with @XmlRootElement
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-api/src/main/java/org/kie/server/api/model/KieServerCommand.java

This has a negative effect in following scenario.

Assume a kjar which depends on Work Item Handler jar. This WIH Jar depends on actual Service JAR, which brings kie-server-client 
https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/kie-server-parent/kie-server-remote/kie-server-client

Let's say that there is a WorkItem which does some operation in /kie-server, which should be valid use case.

This KJAR can't be deployed, because the engine will scan KJAR dependencies for all @XmlRootElement annotated classes, and it will instantiate JAXBContext with these.

However, JAXB Can't work with interfaces, hence the KJAR deployment will fail

with
"KieServerCommand is an interface, and JAXB can't handle interfaces".

Version-Release number of selected component (if applicable):
BPMS Suite / BRMS
6.1.2

How reproducible:
always

Steps to Reproduce:
1. Try to deploy a KJAR which depends on kie-server-client artifact
2. The deployment will fail during the JAXBContext instantiation with the above error


Actual results:
KieServerCommand is annotated with @XmlRootElement and therefore, any KJAR depending on kie-server-client can't be deployed.

Expected results:
KJAR which depends on kie-server-client can be deployed

Additional info:

Comment 4 Karel Suta 2015-10-29 09:55:41 UTC
Verified in 6.2.0ER4.