On Aug 4, 2008, at 3:25 AM, Marc Speck wrote:
I have to admit, this starts looking very nasty. For a starter you
might
just do something like this:
<Import-Package>*;resolution:=optional</Import-Package>
Well, that's one thing out of 1000 I've already tried. It deploys
without
grumbling but as soon as I use
org.apache.abdera.parser.stax.util.PrettyWriter, I get an error:
"javax.xml.stream.FactoryConfigurationError: Requested factory
com.ctc.wstx.stax.WstxOutputFactory cannot be located. Classloader
[EMAIL PROTECTED] Launchpad Web Application"
This is a separate issue. Even though you've embedded the appropriate
dependency (wstx-asl) in your bundle, Abdera's classloading magic
isn't finding it. I've found the easiest thing to do is wrap Abdera
calls in some code like the following:
ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
Thread
.currentThread().setContextClassLoader(getClass().getClassLoader());
try {
// Do Abdera stuff
} finally {
Thread.currentThread().setContextClassLoader(classLoader);
}
Reference: http://markmail.org/message/5ot4rlsclk4irhbx
--
Christopher Elkins