简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM