java - Bundle gains unexplained requirement to different bundle when try to read XML -
this odd situation me. have large project using osgi , i'm modifying 1 of bundles. of changes work fine, except when try update 1 part of code read xml bundle refuses load. error message stating bundle missing constraint jogl version 0.0.0. bundle not directly use jogl, although bundle it's dependent on use jog. have jogl_1.1.1 bundle installed sufficient load other jogl dependent bundles;
by commenting out parts of code , testing i've discovered can import of appropriate classes, moment try use documentbuilderfactory parse xml complaint missing jogl bundle. occurs if add documentbuilderfactory method never called; , occurs despite ensuring xml-apis jar in class path.
i'm @ complete lost how xml parsing connected jogl. bundle version of 0.0.0 valid? don't know go here, suggestion cause of behavior or try address appreciated.
thanks
like comment mentioned, helpful know if you're trying import or if classnotfound.
if you're trying import , fails, maybe bnd getting little bit confused when analyses code. if that's case, recommend declaring imports explicitly in manifest. (at least temporary fix try learn more problem).
if it's classnotfound, that's strange. noticed jogl uses documentbuilderfactory. i'm starting wild-guess-land, it's possible jogl doing bad load/implement documentbuilderfactory , it's causing problems across multiple bundles.
as final though, have tried making dummy bundle has 1 class calls documentbuilderfactory see if has same problem?
Comments
Post a Comment