The xerces packages are already exported by the system bundle, so it should
not be needed to have them boot delegated.
It rather indicates that you are using this package without importing it I
think.


2014-04-22 10:26 GMT+02:00 Minto van der Sluis <[email protected]>:

> Hi folks,
>
> I ran into some issues with getting my stuff to work with a xerces
> dependency in a karaf 3.0.1 assembly.
>
> Initially it turned out that I had 2 different xerces libraries. One as
> part of karaf in lib/endorsed (KARAF-2446) and the other was one of my
> dependencies  (using servicemix). Getting rid of the servicemix xerces
> bundle resolved some of my errors but now the following error popped up
> for various xerces classes:
>
>     java.lang.NoClassDefFoundError: org/apache/xerces/util/XMLChar
>
> I managed to get rid of these by adding "org.apache.xerces.*" to the
> org.osgi.framework.bootdelegation property in config.properties .
>
> Is this the right way to solve this? And if so, shouldn't this
> additional entry be part Karaf itself?
>
> Regards,
>
> misl
>
>

Reply via email to