Red Hat Bugzilla – Bug 1310889
[QA](6.2.z)Exception when creating container with kie-api dependency in kjar
Last modified: 2016-03-08 04:42:16 EST
+++ This bug was initially created as a clone of Bug #1310708 +++
Description of problem:
When I try to create container on Kie server from kjar which depends on OSGI - for example on kie-api, I get exception showed in attachment.
Version-Release number of selected component (if applicable):
Create kjar which contains dependency on kie-api. Deploy kjar to Kie server.
Error listed in attachment is thrown.
Kjar is successfully deployed.
--- Additional comment from JBoss Product and Program Management on 2016-02-22 10:00:18 EST ---
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.
--- Additional comment from Edson Tirelli on 2016-02-22 10:09:01 EST ---
Does it happen with any OSGified dependency jar or only with kie-api?
--- Additional comment from Karel Suta on 2016-02-22 10:20:32 EST ---
Do you know any OSGified dependency which I could use to check it? Or how can I try it
this is covered by bz https://bugzilla.redhat.com/show_bug.cgi?id=1297869
main principle is that dependencies:
are always declared as provided as they are provided by both business central and kie server and thus should never be duplicated on ProjectClassLoader level
Verified by deploying kjar with kie-api dependency through REST.
If notes from Maciej's comment (comment #2) aren't documented, they should be, because when someone doesn't set the dependency as provided, the deployment (correctly) raises an exception similar to this . So I'm also setting requires_doc_text flag.