The standalone form of Fuseki is essentially the guts of a webapp conveniently prepacked with Jetty to serve it. The WAR version is those same guts packaged up as a WAR.
Adam Soroka > On Dec 27, 2017, at 12:16 PM, John James <[email protected]> wrote: > > Yes, I had moved the jar file. It didn't seem obvious that, if I were running > a standalone server, that any notion of webapp was necessary. Addressing this > took care of the issue. Thanks. > > John > > On 12/27/2017 7:38 AM, Andy Seaborne wrote: >> > ERROR Can't find resourceBase (tried >> > webapp, src/main/webapp, /space/junk/fuseki/webapp and >> > /space/junk/fuseki/src/main/webapp) >> >> Fuseki can't find it's web pages. >> Did you move the jar file? (the installation has a webapp/ directory). >> >> Set FUSEKI_HOME appropriately or run in the directory of the whole >> installation and the script sets it (but if not already set). >> >> Andy >> >> >> On 27/12/17 08:36, Laura Morales wrote: >>> Also, update to 3.6 >>> >>> Sent: Wednesday, December 27, 2017 at 9:34 AM >>> From: "Laura Morales" <[email protected]> >>> To: [email protected] >>> Cc: [email protected] >>> Subject: Re: Fuseki/TDB: Unable to Start Standalone Server >>> Your configuration works for me... make sure your "tdb:location" exists and >>> that FUSEKI_HOME and FUSEKI_BASE are correctly configured too. >>> >>> Sent: Wednesday, December 27, 2017 at 4:17 AM >>> From: [email protected] >>> To: [email protected] >>> Subject: Fuseki/TDB: Unable to Start Standalone Server >>> I've been attempting to configure and run a standalone fuseki persistent >>> server on top of TDB, but when I feel I have everything configured and >>> executed properly, for whatever reason I seem to end up as though I'm >>> attempting to run as a webapp, and I have been unable to discover the >>> error of my ways. I'm attempting this on the 3.4.0 release and continue >>> to get this error: >>> >>> [] ./fuseki-server --verbose --config=configuration/fuseki.config.ttl >>> [2017-12-26 18:40:56] Server ERROR Can't find resourceBase (tried >>> webapp, src/main/webapp, /space/junk/fuseki/webapp and >>> /space/junk/fuseki/src/main/webapp) >>> [2017-12-26 18:40:56] Server ERROR Failed to start >>> org.apache.jena.fuseki.FusekiException: Failed to start >>> at >>> org.apache.jena.fuseki.jetty.JettyFuseki.createWebApp(JettyFuseki.java:184) >>> at >>> org.apache.jena.fuseki.jetty.JettyFuseki.buildServerWebapp(JettyFuseki.java:226) >>> >>> at >>> org.apache.jena.fuseki.jetty.JettyFuseki.<init>(JettyFuseki.java:91) >>> at >>> org.apache.jena.fuseki.jetty.JettyFuseki.initializeServer(JettyFuseki.java:86) >>> >>> at >>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.exec(FusekiCmd.java:358) >>> >>> at jena.cmd.CmdMain.mainMethod(CmdMain.java:93) >>> at jena.cmd.CmdMain.mainRun(CmdMain.java:58) >>> at jena.cmd.CmdMain.mainRun(CmdMain.java:45) >>> at >>> org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:95) >>> >>> at >>> org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:60) >>> | >>> | >>> |fuseki.config.ttl: >>> >>> @prefix fuseki: <http://jena.apache.org/fuseki#> .| >>> |@prefix rdf: >>> <http://www.w3.org/1999/02/22-rdf-syntax-ns#[http://www.w3.org/1999/02/22-rdf-syntax-ns#][http://www.w3.org/1999/02/22-rdf-syntax-ns#[http://www.w3.org/1999/02/22-rdf-syntax-ns#]]> >>> .| >>> |@prefix rdfs: >>> <http://www.w3.org/2000/01/rdf-schema#[http://www.w3.org/2000/01/rdf-schema#][http://www.w3.org/2000/01/rdf-schema#[http://www.w3.org/2000/01/rdf-schema#]]> >>> .| >>> |@prefix ja: >>> <http://jena.hpl.hp.com/2005/11/Assembler#[http://jena.hpl.hp.com/2005/11/Assembler#][http://jena.hpl.hp.com/2005/11/Assembler#[http://jena.hpl.hp.com/2005/11/Assembler#]]> >>> .| >>> |@prefix tdb: >>> <http://jena.hpl.hp.com/2008/tdb#[http://jena.hpl.hp.com/2008/tdb#][http://jena.hpl.hp.com/2008/tdb#[http://jena.hpl.hp.com/2008/tdb#]]> >>> .| >>> |@prefix : <http://localhost/jena_example/#> .| >>> >>> |[] rdf:type fuseki:Server ;| >>> | # Server-wide context parameters can be given here.| >>> | # For example, to set query timeouts: on a server-wide basis:| >>> | # Format 1: "1000" -- 1 second timeout| >>> | # Format 2: "10000,60000" -- 10s timeout to first result, then 60s >>> timeout to for rest of query.| >>> | # See java doc for ARQ.queryTimeout| >>> | ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue >>> "10000,120000" ] ;| >>> >>> | # Load custom code (rarely needed)| >>> | # ja:loadClass "your.code.Class" ;| >>> >>> | # Services available. Only explicitly listed services are configured.| >>> | # If there is a service description not linked from this list, it >>> is ignored.| >>> | fuseki:services (| >>> | <#service1>| >>> | ) .| >>> >>> |## ---------------------------------------------------------------| >>> >>> |<#service1> rdf:type fuseki:Service ;| >>> | fuseki:name "junk" ; # http://host:port/ds| >>> | fuseki:serviceQuery "query" ; # SPARQL query service| >>> | fuseki:serviceQuery "sparql" ; # SPARQL query service| >>> | fuseki:serviceUpdate "update" ; # SPARQL query service| >>> | fuseki:serviceUpload "upload" ; # Non-SPARQL upload >>> service| >>> | fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store >>> protocol (read and write)| >>> | # A separate read-only graph store endpoint:| >>> | fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store >>> protocol (read only)| >>> | fuseki:dataset <#junk-persist> ;| >>> | .| >>> || >>> >>> |[] ja:loadClass "org.apache.jena.tdb.TDB" .| >>> |tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .| >>> |tdb:GraphTDB rdfs:subClassOf ja:Model .| >>> >>> |<#junk-persist> rdf:type tdb:DatasetTDB ;| >>> | tdb:location "/space/junk/fuseki/databases/persist" ;| >>> | .| >>> >>> >>> || >>> >>> >>> >> >
