[jboss-osgi-issues] [JBoss JIRA] (JBOSGI-624) Bundle importing the package of multiple versions isn't supported
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Thu Jan 24 05:11:47 EST 2013
[ https://issues.jboss.org/browse/JBOSGI-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750153#comment-12750153 ]
Thomas Diesler edited comment on JBOSGI-624 at 1/24/13 5:11 AM:
----------------------------------------------------------------
This fundamental functionality is verified by our internal test suite and the OSGi TCK. Perhaps you are not defining the package capability version on the package directive
See OSGi-Spec 4.2
3.5.5 Export-Package
v e r s i o n – The version of the named packages with syntax as defined in Version on page 32. It defines the version of the associated packages. The default value is 0.0.0.
was (Author: thomas.diesler):
This fundamental functionality is verified by our internal test suite and the OSGi TCK. Perhaps you are not defining the package capability version on the package directive
> Bundle importing the package of multiple versions isn't supported
> -----------------------------------------------------------------
>
> Key: JBOSGI-624
> URL: https://issues.jboss.org/browse/JBOSGI-624
> Project: JBoss OSGi
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Hari Ohm Prasath
> Assignee: Thomas Diesler
> Labels: OSGI
>
> I have a OSGI service bundle with Bundle-Version as "1.0.0" in which i have exported this particular package "com.example.test" and I have a OSGI web client where i am importing this package with version as "[1.0.0,2.0.0]" (i.e)
> Import-Package:com.example.test;version:[1.0.0,3.0.0]. Now when i start the client bundle after the service bundle I am getting this exception:
> 13:21:36,952 WARN [org.jboss.as.osgi] (MSC service thread 1-10) JBAS011910: Can
> not resolve requirements: [XPackageRequirement[atts={osgi.wiring.package=com.example.test, version=[1.0.0,2.0.0]},[TestServlet:0.0.0]]]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-osgi-issues
mailing list