On 13/03/13 19:47, Michael Cox wrote:
Andy,
Thanks for the response.
I am getting classnotfound and methodnotfound errors when I try and
run queries in fuseki, I'm assuming because I have some sort of
library mismatch.
I'm trying to get a fuseki-0.2.6 endpoint running and pulling from
what I believe is an sdb-1.3.4 database, do you have any advice on
what versions of the jars I should try looking at? Right now, I'm
running into the following when I run a SPARQL query:
java.lang.NoSuchMethodError:
org.apache.jena.atlas.io.IndentedWriter.print(Ljava/lang/String;)V
etc etc
> the versions of the jars I am using are:
> arq-2.8.8.jar
> jena-2.6.4.jar
> mysql-connector-java-5.1.19.jar
> iri-0.8.jar
> jena-sdb-1.3.6-20130312.095818-13.jar
> ReconnectingSDB-0.1-SNAPSHOT.jar
That's a bit of a mixture.
fuseki-0.2.6 isn't compatible with jena-2.6.4 so I guess you have
multiple jena/arq on the classpath. The Fuseki server jar has jena and
arq already in it.
And ARQ 2.8.8 does not have org.apache.jena.atlas....
It's probably easier if you take a consistent set from snapshot if you
want to run any snapshot version. I'm afraid there isn't a SDB build
for exactly Fuseki 0.2.6 (I thought there was but checking I see SDB is
checking Jena development builds - 2.10.1-SNAPSHOT which for Fuseki is
0.2.7-SNAPHOST - sorry about that).
If you have Fuseki+SDB from development,
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/
Modules jena-fuseki, jena-sdb
Fuseki is currently 0.2.7-SNAPSHOT
SDB is currently 1.3.6-SNAPSHOT
and you want the latest build (which is at the bottom - highest
increment number).
if you use maven, add the snapshot repo to the repositories.
Andy
When using the sdb-1.3.4.jar instead of the new version, Fuseki fails
with the following:
Exception in thread "main" java.lang.NoSuchMethodError:
com.hp.hpl.jena.query.DatasetFactory.create(Lcom/hp/hpl/jena/sparql/core/DatasetGraph;)Lcom/hp/hpl/jena/query/DataSource;
at com.hp.hpl.jena.sdb.store.DatasetStore.create(DatasetStore.java:34)
at
com.hp.hpl.jena.sdb.SDBFactory.connectDataset(SDBFactory.java:159)