Search code examples
javaclassnotfoundexceptionjenafuseki

ClassNotFoundException : fuseki-server.jar


I am attempting to perform SPARQL update queries using fuseki-server.jar with the following code:

UpdateRequest ur = UpdateFactory.create();
ur.add(update);
UpdateProcessRemote r = new UpdateProcessRemote(ur,address);
r.execute();

However, it is failing with the following exception:

SEVERE: Servlet.service() for servlet [QualityAssessment] in context with path [/GTQuality] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: com.hp.hpl.jena.sparql.modify.UpdateProcessRemote

Initial reaction is that it is a classpath problem but fuseki-server.jar is both included in the build path and in WEB-INF/lib so I'm a bit stuck. The exact same code works perfectly as a standalone Java project.


Solution

  • Asked elsewhere: http://answers.semanticweb.com/questions/19840/jenasparqlmodifyupdateprocessremote-class-not-found

    If it works standalone, and not elsewhere, then it's a setup problem.

    fuseki-server.jar for 0.2.5 does contain UpdateProcessRemote:

    unzip -v fuseki-server.jar | grep UpdateProcessRemote.class ==>

    1498  Defl:N      739  51% 2012-10-20 17:05 1517e336  com/hp/hpl/jena/sparql/modify/UpdateProcessRemote.class
    

    Look for other (old) copies of ARQ.