Bug 1297851

Summary: Deployment of infinispan-remote in Karaf fails due to missing requirement org.slf4j.impl
Product: [JBoss] JBoss Data Grid 6 Reporter: Jiri Holusa <jholusa>
Component: BuildAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: jdg-bugs, rmarwaha
Target Milestone: CR2   
Target Release: 6.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
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:

Description Jiri Holusa 2016-01-12 15:51:38 UTC
After resolving https://bugzilla.redhat.com/show_bug.cgi?id=1285808 , new thing raised. When deploying tests with infinispan-remote in Karaf (both 2.x or 3.0.0), I get following exception:

Could not start bundle mvn:org.infinispan/infinispan-remote/6.4.0.Final-redhat-1 in feature(s) infinispan-remote-6.4.0.Final-redhat-1: Unresolved constraint in bundle org.infinispan.remote [54]: Unable to resolve 54.0: missing requirement [54.0] osgi.wiring.package; (osgi.wiring.package=org.slf4j.impl)

The trouble is that infinispan-remote's (6.6.0.CR1) MANIFEST.MF contains 
Import-Package: ... resolution:=optional,org.slf4j.impl

I checked infinispan-remote's MANIFEST.MF in 6.6.0.ER1, where it worked, and there isn't the impl package, but:
Import-Package: ... resolution:=optional,org.slf4j,org.slf4j.spi

When I try to replace the string from CR1 by the string from ER1, everything works fine.

Comment 1 Martin Gencur 2016-01-12 15:56:17 UTC
This one looks like the cause: https://bugzilla.redhat.com/show_bug.cgi?id=1266831