You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Hubert Felber <Hu...@abacus.ch> on 2015/08/14 16:17:17 UTC
how to solve NoClassDefFundError on thirdParty Bundle
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: how to solve NoClassDefFundError on thirdParty Bundle
Posted by craig niles <ni...@gmail.com>.
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 <Hu...@abacus.ch>
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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>