Phil Ashworth
2013-12-23 10:24:52 UTC
HI D2r List
Happy Christmas to you all.
I've previously used 0.8.1 as localhost and as hosted endpoint in tomcat
using a war without issues.
It's great Thanks.
I've just been trying to use the code within a java application.
I've followed exactly example exactly as described on the site "Executing
Sparql Queries against a modeld2rq"
However when I run the app I get the error below.
I've imported the jena jars that are listed in the libs directory.
Can anyone tell me where I am going wrong?
FYI: The mapping I am loading works as a local host d2r-server
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/jena/iri/IRIException
at com.hp.hpl.jena.n3.JenaReaderBase.readImpl(JenaReaderBase.java:113)
at com.hp.hpl.jena.n3.JenaReaderBase.read(JenaReaderBase.java:81)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:274)
at
com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:423)
at
com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:326)
at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:278)
at de.fuberlin.wiwiss.d2rq.jena.ModelD2RQ.<init>(ModelD2RQ.java:35)
at
rdf.d2rtest_0_1.d2rTest.tD2RInputConstructRDF_1Process(d2rTest.java:481)
at rdf.d2rtest_0_1.d2rTest.runJobInTOS(d2rTest.java:847)
at rdf.d2rtest_0_1.d2rTest.main(d2rTest.java:713)
Caused by: java.lang.ClassNotFoundException:
org.apache.jena.iri.IRIException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Thanks in advance.
Happy holidays!
Phil
Happy Christmas to you all.
I've previously used 0.8.1 as localhost and as hosted endpoint in tomcat
using a war without issues.
It's great Thanks.
I've just been trying to use the code within a java application.
I've followed exactly example exactly as described on the site "Executing
Sparql Queries against a modeld2rq"
However when I run the app I get the error below.
I've imported the jena jars that are listed in the libs directory.
Can anyone tell me where I am going wrong?
FYI: The mapping I am loading works as a local host d2r-server
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/jena/iri/IRIException
at com.hp.hpl.jena.n3.JenaReaderBase.readImpl(JenaReaderBase.java:113)
at com.hp.hpl.jena.n3.JenaReaderBase.read(JenaReaderBase.java:81)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:274)
at
com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:423)
at
com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:326)
at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:278)
at de.fuberlin.wiwiss.d2rq.jena.ModelD2RQ.<init>(ModelD2RQ.java:35)
at
rdf.d2rtest_0_1.d2rTest.tD2RInputConstructRDF_1Process(d2rTest.java:481)
at rdf.d2rtest_0_1.d2rTest.runJobInTOS(d2rTest.java:847)
at rdf.d2rtest_0_1.d2rTest.main(d2rTest.java:713)
Caused by: java.lang.ClassNotFoundException:
org.apache.jena.iri.IRIException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Thanks in advance.
Happy holidays!
Phil