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:
Created attachment 1097216 [details] Reproducer
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