Hi Phil,

Happy new year!

It may be too late to be of any help, but this looks like a classpath issue 
with your project setup. The class that is not found — 
org.apache.jena.iri.IRIException — is not used anywhere in D2RQ 0.8.1. In the 
version of Jena/ARQ that ships with D2RQ 0.8.1, that class was still called 
com.hp.hpl.jena.iri.IRIException.

My best guess is that you have a different version of the Jena jars, besides 
those shipped with D2RQ, somewhere on your project classpath. Make sure that 
you *only* have those jars shipped in D2RQ's lib directory (and its 
subdirectories) on the classpath.

Best,
Richard


On 23 Dec 2013, at 10:24, Phil Ashworth <pashwo...@topquadrant.com> wrote:

> 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
>  
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk_______________________________________________
> d2rq-map-devel mailing list
> d2rq-map-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
d2rq-map-devel mailing list
d2rq-map-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to