A while back I encountered a complication in using Jena on the mac, with Jena 
jars wrapped into an osgi bundle.

The problem is a runtime error complaining:

         java.lang.NoClassDefFoundError: org/xml/sax/SAXException

Specifically, 

        at com.hp.hpl.jena.util.Metadata.read(Metadata.java:67)
        at com.hp.hpl.jena.util.Metadata.addMetadata(Metadata.java:41)
        at com.hp.hpl.jena.util.Metadata.<init>(Metadata.java:35)
        at com.hp.hpl.jena.JenaRuntime.<clinit>(JenaRuntime.java:25)
        at 
com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.<clinit>(RDFReaderFImpl.java:85)
        at com.hp.hpl.jena.rdf.model.impl.ModelCom.<clinit>(ModelCom.java:42)
        at 
com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:122)
        at 
com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:116)
        at com.hp.hpl.jena.vocabulary.OWL.<clinit>(OWL.java:37)
        at com.hp.hpl.jena.sparql.ARQConstants.<clinit>(ARQConstants.java:37)
        at com.hp.hpl.jena.query.ARQ.<clinit>(ARQ.java:39)
        at 
com.hp.hpl.jena.sparql.function.FunctionRegistry.get(FunctionRegistry.java:38)

I’m not entirely certain what version of jena is being pulled in for this. The 
error’s being thrown from csparql code using jena 2.6.3, but the bulk of my 
code is 2.11.0.

That’s probably not relevant, since I’ve seen the same problem on Mac’s before 
and resolved it by proper placement of the xerces and xml api files in the 
right place. It appears this might have changed in OSX Mavericks, but I’ve been 
able to defeat it this time, nor have I been able to glean from the web how to 
do so.

Any advice? (And, yes - I expect to try our Linux cluster as a possible 
solution).

Thanks,

Mark

Reply via email to