+++ 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): 6.2.1 How reproducible: Create kjar which contains dependency on kie-api. Deploy kjar to Kie server. Actual results: Error listed in attachment is thrown. Expected results: Kjar is successfully deployed. Additional info: --- 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: - org.kie - org.drools - org.jbpm 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 [1]. So I'm also setting requires_doc_text flag. [1] http://pastebin.com/FkpPfhr4