Not a typo error. weld-osi projects used maven-bundle-plugin + bnd file to generate packages to be imported and exported and error comes from there. Will fix that. Thx.
On Mon, Nov 12, 2012 at 11:28 AM, Freeman Fang <[email protected]>wrote: > Hi Charles, > > Bundle A export package javax.enterprise.inject but bundle B try to > import javax.inject, is this mismatch a typo? > > ------------- > Freeman(Yue) Fang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://fusesource.com | http://www.redhat.com/ > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > http://blog.sina.com.cn/u/1473905042 > weibo: http://weibo.com/u/1473905042 > > On 2012-11-12, at 下午6:21, Charles Moulliard wrote: > > Hi, > > Under karaf 2.3.0, I have a strange import/export issue. > > The following package "javax.enterprise.inject" is well exported by bundle > A > > Export-Package = > javax.enterprise.context;version=1.0.0, > > javax.enterprise.inject;uses:="javax.enterprise.util,javax.enterprise.context";version=1.0.0, > javax.enterprise.util;version=1.0.0, > > But bundle B is not able to import it > > Import-Package = > javax.inject;version=1.0.0, > > Caused by: org.osgi.framework.BundleException: Unresolved constraint in > bundle org.jboss.weld.osgi.weld-osgi-core-integration [56]: Unable to > resolve 56.0: missing requirement [56.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.inject)(version>=1.0.0)) > > Is it a Felix known issue ? > > Regards, > > -- > Charles Moulliard > Apache Committer / Sr. Enterprise Architect (RedHat) > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com > > > > -- Charles Moulliard Apache Committer / Sr. Enterprise Architect (RedHat) Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
