Ioannis,

This is something I'd like to see a use-case for with code. That will help
us determine what the specific issue is. Can you code something up quickly
and drop it into a new github project?  I'll have some time this weekend to
download it and tinker work through the problem.  To ensure we reduce the
number of tangental technologies that are causing this, I would suggest the
example use Aries and Java only.

Also, from your explanation, this looks like this could be a Felix issue. Do
you think cross-posting this would be a good idea?


iocanel wrote
> 
> Hi all,
> 
> I encounter a strange case that I wanted to share with you, in case I miss
> something.
> In short lines, I am seeing that packages exported by fragment bundles not
> been properly imported.
> 
> Here is an example:
> I have bundle A.
> I have fragment bundle B (with fragment host A), which exports package *
> yet.another.package*.
> Bundle C imports yet.another.package is installed and started in my karaf
> 3.x.
> 
> i) package:imports on bundle C *properly* displays yet.another.package as
> imported package
> ii) bundle:headers C displays package *yet.another.package* as *missing*.
> 
> Now if I add Bundle D that is a fragment bundle for C that also imports *
> yet.another.package*, this bundle will not get attached to bundle C.
> Nothing appears to the log (info & debug).
> 
> So this looks like, fragments don't properly resolve when they import
> bundles from other fragments, or when their host imports packages from
> other fragments.
> 
> I have tested it only on felix, since equinox currently doesn't work for
> me
> at all.
> Anyone else had a similar experience? Do you think this is a felix issue?
> Any thoughts at all?
> 
> -- 
> *Ioannis Canellos*
> *
> FuseSource <http://fusesource.com>
> 
> **
> Blog: http://iocanel.blogspot.com
> **
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache Camel <http://camel.apache.org/> Committer
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> Apache Gora <http://incubator.apache.org/gora/> Committer
> Apache DirectMemory <http://incubator.apache.org/directmemory/>
> Committer
> *
> 


-----
Mike Van  (All links open in new tabs)
Committer - Kalumet 

Atraxia Technologies 

NCI Inc 

Mike Van's Open Source Technologies Blog 
--
View this message in context: 
http://karaf.922171.n3.nabble.com/Fragments-in-Karaf-3-x-and-OSGi-4-3-tp3524449p3528728.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Reply via email to