Hi, Looks like an error in their package imports, in which case adding javax.xml.parsers would be a valid solution.
You shouldn't need to modify the osgi packages.extra variable--org.slf4j should be exported by an installed bundle and javax.xml.parsers should already be provided by the framework. V/r, Craig On Fri, Aug 14, 2015 at 2:17 PM, Hubert Felber <[email protected]> wrote: > Hi, > > I use JNIWrapper 3.10 as OSGI bundle and get > "java.lang.NoClassDefFoundError: > javax/xml/parsers/DocumentBuilderFactory" > > In their manifest they only import org.slf4j. > > I tried to add org.slf4j,javax.xml.parsers to > "org.osgi.framework.system.packages.extra" without any success. > Is this supposed to work? > > I finally ended up by modifying their manifest with "Import-Package: > org.slf4j,javax.xml.parsers,org.w3c.dom" . That solved this problem, but > I am not sure if this is the way to go. > > Is this the correct way to handle this? > > Thank you > Hubert > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

