Bug 1284006

Summary: [SET] (6.4.z) JBosgi doesn't provide OSGI Execution Environment Capability
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Bartek Spyrko-Smietanko <bspyrkos>
Component: OSGiAssignee: Bartek Spyrko-Smietanko <bspyrkos>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.5CC: cdewolf, thomas.diesler, vtunka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:19:18 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:
Attachments:
Description Flags
Reproducer none

Description Bartek Spyrko-Smietanko 2015-11-20 14:15:58 UTC
Description of problem:

If an OSGI deployment contains a module using 'Require-Capability: osgi.ee' manifest header, the deployment fails with

"
16:48:38,102 WARN  [org.jboss.as.osgi] (MSC service thread 1-11) JBAS011910: Cannot resolve requirements: [AbstractBundleRequirement[atts={osgi.ee=osgi.ee},dirs={filter=(&(osgi.ee=JavaSE)(version=1.3))},[org.apache.commons.collections:3.2.1.redhat-5]]]
16:48:38,103 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015970: Defer FIRST_MODULE_USE for commons-collections.jar making it NEVER
16:48:38,103 WARN  [org.jboss.as.osgi] (MSC service thread 1-6) JBAS011910: Cannot resolve requirements: [XPackageRequirement[atts={osgi.wiring.package=org.apache.commons.collections.bag},[bundle-collections.war:0.0.0]]]
16:48:38,103 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015970: Defer FIRST_MODULE_USE for bundle-collections.war making it NEVER
"

This can be reproduced using org.jboss.as.test.integration.osgi.ear.CollectionsEnterpriseArchiveTestCase using commons-collections-3.2.1.redhat-5

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. change the 'version.commons-collections' property to 3.2.1.redhat-5 in jboss-eap/pom.xml
2. run the test: ./integration-tests.sh -DallTests -Dtest=CollectionsEnterpriseArchiveTestCase

Actual results:


Expected results:


Additional info:

Comment 1 Bartek Spyrko-Smietanko 2015-11-20 14:17:13 UTC
Created attachment 1097216 [details]
Reproducer

Comment 2 Bartek Spyrko-Smietanko 2015-11-20 14:19:17 UTC
Alternate reproducer:
1. Copy attached ear into standalone/deployment
2. Run ./bin/standalone.sh -c standalone-osgi.xml
3. Go to http://localhost:8080/bundle-collections/servlet