On Wed, Sep 11, 2013 at 6:15 PM, Minto van der Sluis <[email protected]> wrote:

> Hi Folks,
>
> Anyone a clue how to solve the following error?
>
>     ...
> Caused by: java.lang.ClassCastException:
> org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl cannot be cast to
> javax.xml.datatype.DatatypeFactory
>     at javax.xml.datatype.DatatypeFactory.newInstance(Unknown
> Source)[:2.2.0]
>     at
> com.hp.hpl.jena.tdb.store.DateTimeNode.<clinit>(DateTimeNode.java:83)
>
>
> It appear there are 3 bundles in my environment containing that class:
>
>     karaf@root>osgi:find-class DatatypeFactoryImpl
>
>     Apache ServiceMix :: Bundles :: saaj-impl (145)
>
> com/sun/org/apache/xerces/internal/jaxp/datatype/DatatypeFactoryImpl.class
>
>     Apache ServiceMix :: Bundles :: xercesImpl (146)
>     org/apache/xerces/jaxp/datatype/DatatypeFactoryImpl.class
>
>     Clerezza Ext - Jena TDB OSGi Bundle (199)
>     org/apache/xerces/jaxp/datatype/DatatypeFactoryImpl.class
>
> The strange this is that everything worked well until I upgraded Karaf
> (2.3.0 --> 2.3.2) and CXF (2.7.3 --> 2.7.6). Downgrading Karaf again is
> not an option since I need a fix in the latest version. Downgrading CXF
> again yields the same result.
>
> Is it an option for ext:org.apache.jena.tdb bundle to use and external
> xerces bundle (from ServiceMix) instead of embedding xerces inside this
> clerezza bundle?
>
If this works (i.e. the servicemix bundle exports all xerces packages
needed by jena) this sound like the perfect solution.

Cheers,
Reto

Reply via email to