[jboss-jira] [JBoss JIRA] (AS7-2959) Adding <capability name="javax.jms.api"/> to standalone.xml's osgi section does not result in the javax.jms api's being visible to OSGi bundles.
Jeff Mesnil (JIRA)
jira-events at lists.jboss.org
Fri Jul 20 09:57:07 EDT 2012
[ https://issues.jboss.org/browse/AS7-2959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707060#comment-12707060 ]
Jeff Mesnil commented on AS7-2959:
----------------------------------
@thomas, when I add the additional OSGi metadata to the javax.jms.api[1], the osgi subsystem activates fine and it lists the javax.jms.api bundle as RESOLVED. However, the version is 0.0.0 (instead of 1.1).
However, the javax.servlet.api also has its version set to 0.0.0 (instead of 3.0). I suspect there is another issue related to the jbosgi-xservice.properties. Is it a known issue?
{noformat}
[standalone at localhost:9999 subsystem=osgi] ./capability=javax.jms.api:add(startlevel=1)
{"outcome" => "success"}
[standalone at localhost:9999 subsystem=osgi] ./:activate
{"outcome" => "success"}
[standalone at localhost:9999 subsystem=osgi] ./:read-resource(include-runtime=true, recursive=true)
{
"outcome" => "success",
"result" => {
"activation" => "lazy",
"startlevel" => 1,
"bundle" => {
"0" => {
"id" => 0L,
"location" => "System Bundle",
"startlevel" => 0,
"state" => "ACTIVE",
"symbolic-name" => "system.bundle",
"type" => "bundle",
"version" => "0.0.0"
},
"1" => {
"id" => 1L,
"location" => "javax.servlet.api:main",
"startlevel" => -1,
"state" => "RESOLVED",
"symbolic-name" => "javax.servlet.api",
"type" => "bundle",
"version" => "0.0.0"
},
"2" => {
"id" => 2L,
"location" => "javax.transaction.api:main",
"startlevel" => -1,
"state" => "RESOLVED",
"symbolic-name" => "javax.transaction.api",
"type" => "bundle",
"version" => "0.0.0"
},
"3" => {
"id" => 3L,
"location" => "javax.jms.api:main",
"startlevel" => -1,
"state" => "RESOLVED",
"symbolic-name" => "javax.jms.api",
"type" => "bundle",
"version" => "0.0.0"
},
"4" => {
"id" => 4L,
"location" => "org.osgi.enterprise",
"startlevel" => 1,
"state" => "RESOLVED",
"symbolic-name" => "osgi.enterprise",
"type" => "bundle",
"version" => "4.2.0.201003190513"
},
"5" => {
"id" => 5L,
"location" => "org.apache.felix.log",
"startlevel" => 1,
"state" => "ACTIVE",
"symbolic-name" => "org.apache.felix.log",
"type" => "bundle",
"version" => "1.0.0"
},
"6" => {
"id" => 6L,
"location" => "org.jboss.osgi.logging",
"startlevel" => 1,
"state" => "ACTIVE",
"symbolic-name" => "jboss-osgi-logging",
"type" => "bundle",
"version" => "1.0.0"
},
"7" => {
"id" => 7L,
"location" => "org.apache.felix.configadmin",
"startlevel" => 1,
"state" => "ACTIVE",
"symbolic-name" => "org.apache.felix.configadmin",
"type" => "bundle",
"version" => "1.2.8"
},
"8" => {
"id" => 8L,
"location" => "org.jboss.as.osgi.configadmin",
"startlevel" => 1,
"state" => "ACTIVE",
"symbolic-name" => "jboss-as-osgi-configadmin",
"type" => "bundle",
"version" => "7.2.0.Alpha1-SNAPSHOT"
}
},
"capability" => {
"javax.servlet.api" => {},
"javax.transaction.api" => {},
"org.apache.felix.log" => {"startlevel" => "1"},
"org.jboss.osgi.logging" => {"startlevel" => "1"},
"org.apache.felix.configadmin" => {"startlevel" => "1"},
"org.jboss.as.osgi.configadmin" => {"startlevel" => "1"},
"javax.jms.api" => {"startlevel" => 1}
},
"property" => {"org.osgi.framework.startlevel.beginning" => {"value" => "1"}}
}
}
[standalone at localhost:9999 subsystem=osgi]
{noformat}
[1] https://github.com/jmesnil/jboss-as/blob/AS7-2959_OSGi_JMS_capability/build/src/main/resources/modules/javax/jms/api/main/jbosgi-xservice.properties
> Adding <capability name="javax.jms.api"/> to standalone.xml's osgi section does not result in the javax.jms api's being visible to OSGi bundles.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AS7-2959
> URL: https://issues.jboss.org/browse/AS7-2959
> Project: Application Server 7
> Issue Type: Bug
> Components: JMS, OSGi
> Affects Versions: 7.1.0.Beta1
> Reporter: Aaron Whiteside
> Assignee: Jeff Mesnil
> Priority: Minor
>
> Adding <capability name="javax.jms.api"/> to standalone.xml's osgi section does not result in the javax.jms api's being visible to OSGi bundles.
> I found however that adding <capability name="javax.xml.bind.api"/> worked as expected for the javax.xml.bind case (meaning it exposes the correct versions for the packages).
> It seems that <capability name="javax.jms.api"/> exposes a version of 0.0.0, which is obviously not 1.1.0 which is required by importers of javax.jms and thus bundles fail to deploy.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list