Thanks a lot!

El 2015-04-30 13:38, Andy Seaborne escribió:
On 30/04/15 16:00, Daniel Hernández wrote:
Hi,

I have created a TDB directory with the tdbloader. I have checked that
data have been loaded correctly with tdbquery as follows:

$ tdbquery --loc /home/dhernand/jena/wd-tdb-1/ 'SELECT (count(*) AS
?count) WHERE { ?s ?p ?o }'
-------------
| count     |
=============
| 391663814 |
-------------

However, when I tried to run fuseki I got the error below and in the
browser I got an HTTP ERROR: 503. Why?

$ ./fuseki-server --loc /home/dhernand/jena/wd-tdb-1/

Daniel,

If you start the server that way, you need to tell the server the
service name for the URL:

./fuseki-server --loc /home/dhernand/jena/wd-tdb-1/ /DS

so that the database is at URL /DS

http://localhost:3030/DS/sparql?query=...

(I'll add some checking to the command line processing)

Andy



[2015-04-30 10:49:09] Server     INFO  Fuseki 2.0.0
2015-03-08T09:49:20+0000
[2015-04-30 10:49:09] Config     INFO
FUSEKI_HOME=/home/dhernand/engines/apache-jena-fuseki-2.0.0
[2015-04-30 10:49:09] Config     INFO
FUSEKI_BASE=/home/dhernand/engines/apache-jena-fuseki-2.0.0/run
[2015-04-30 10:49:09] Servlet    INFO  Initializing Shiro environment
[2015-04-30 10:49:09] Config     INFO  Shiro file:
file:///home/dhernand/engines/apache-jena-fuseki-2.0.0/run/shiro.ini
[2015-04-30 10:49:09] Config     INFO  Template file:
templates/config-tdb-dir
[2015-04-30 10:49:09] Config     INFO  TDB dataset:
directory=/home/dhernand/jena/wd-tdb-1/
[2015-04-30 10:49:09] Config     WARN  No NAME found in template
parameters (added)
[2015-04-30 10:49:09] Server ERROR Exception in initialization: null
[2015-04-30 10:49:09] WebAppContext WARN  Failed startup of context
o.e.j.w.WebAppContext@58443af6{/,file:/home/dhernand/engines/apache-jena-fuseki-2.0.0/webapp/,STARTING}

java.lang.NullPointerException
     at
org.apache.jena.fuseki.build.TemplateFunctions.templateString(TemplateFunctions.java:79)

     at
org.apache.jena.fuseki.build.TemplateFunctions.templateFile(TemplateFunctions.java:43)

     at
org.apache.jena.fuseki.server.FusekiServer.configFromTemplate(FusekiServer.java:293)

     at
org.apache.jena.fuseki.server.FusekiServer.initServerConfiguration(FusekiServer.java:268)

     at
org.apache.jena.fuseki.server.FusekiServer.initializeDataAccessPoints(FusekiServer.java:216)

     at
org.apache.jena.fuseki.server.FusekiServerListener.init(FusekiServerListener.java:70)

     at
org.apache.jena.fuseki.server.FusekiServerListener.contextInitialized(FusekiServerListener.java:45)

     at
org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:799)

     at
org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:446)

     at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)

     at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:296)

     at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1347)

     at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:743)

     at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
     at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)

     at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:117)

     at org.eclipse.jetty.server.Server.start(Server.java:355)
     at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:99)

     at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)

     at org.eclipse.jetty.server.Server.doStart(Server.java:324)
     at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)

     at
org.apache.jena.fuseki.jetty.JettyFuseki.start(JettyFuseki.java:121)
     at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.exec(FusekiCmd.java:331)

     at arq.cmdline.CmdMain.mainMethod(CmdMain.java:102)
     at arq.cmdline.CmdMain.mainRun(CmdMain.java:63)
     at arq.cmdline.CmdMain.mainRun(CmdMain.java:50)
     at
org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:97)

     at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:60)
[2015-04-30 10:49:09] Server INFO Started 2015/04/30 10:49:09 CLT
on port 3030

Thanks,
Daniel

Reply via email to