There is something fundamentally wrong if you are getting NCDFE. All bundles should declare their explicit package imports, and the NCDFE should only happen if; a. You are using DynamicImport somewhere, b. That some system level classes are being used (typically by other system classes) and the framework is not capable of exposing them correctly.
Not much help, but from the generic description it is hard to give more specific answer. Cheers Niclas On Sun, Jan 16, 2011 at 7:02 AM, Pete Carapetyan <p...@datafundamentals.com> wrote: > I could be helped with advice on using pax-exam. Hopefully I can explain the > situation before your eyes glaze over from too much information :( > So far, pax exam 1.2.3 has worked for me successfully on several bundle > projects. It really helped me isolate OSGi service problems in a module > before trying to consume bundles upstream. Thanks Toni and all ! > My current challenge is a JMS based project that uses SpringJMS and QPID. > This bundle passes integration tests successfully before running in OSGi. > The dependency tree is pretty hairy but of course it is something I don't > worry about because Maven takes care of this for me. > Pax-exam doesn't like the way I am trying to test this one project, but I > think it's because I'm missing some bundles deep down in the dependency > tree. The challenge for me is > - missing bundles don't seem to report as missing bundles, but instead there > is a "NoClassDefFoundError" on the first spring bean that I call from that > bundle, which is not the bundle that is missing. > I've tried the brute force approach, just including bundle after bundle > hoping that eventually something would work, but so far all I get is that > same old NoClassDef for the first spring bean that is called. > - it is a pretty large dependency tree > - some of the bundles may or may not be optional, not even sure. > - some of the bundles may already be a part of pax-exam (spring dm bundles > for example) > - some of the bundles of course are not OSGi ready and like any OSGi > project, I have to figure out which ones. > So the advice that I believe that I need to ask for is how to get pax-exam > to give me better feedback on what I am missing? This is especially > challenging since there is a lot of indirection that seems to hide what is > really going on - pax-exam > container > spring > myBundle > otherBundles > Suggestions? > _______________________________________________ > general mailing list > general@lists.ops4j.org > http://lists.ops4j.org/mailman/listinfo/general > > -- Niclas Hedhman, Software Developer http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/3xugrbk I work here; http://tinyurl.com/24svnvk I relax here; http://tinyurl.com/2cgsug _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general