Hi, Hmm, didn't work out as planned.
Looking at the ext.* bundles I noticed something else. Why is the wrapped bundle about 9M is since when the wrapped jar file only is about 0.6M. Seems like too many dependencies are embedded inside. Is this really needed? Looking inside the generated bundled I see stuff that is wrapped elsewhere. Can't we be more like ServiceMix for ext.* bundles? See http://svn.apache.org/repos/asf/servicemix/smx4/bundles/trunk/ I will give it a try. Regards, Minto Op 12-9-2013 8:21, Minto van der Sluis schreef: > Then I will give it a try later today when meeting season is over. > > Regards, > > Minto > > Op 12-9-2013 7:16, Reto Bachmann-Gmür schreef: >> 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 >> > -- ir. ing. Minto van der Sluis Software innovator / renovator Xup BV Mobiel: +31 (0) 626 014541
