The jetty.xml (https://github.com/blazegraph/database/blob/master/blazegraph-jar/src/main/resources/jetty.xml) in that case assumes that the WAR is at the root of the classpath.
It may work if you include the blazegraph.jar (bundled artifact) in your dependencies.
If you can provide more details on the artifacts you're including, we can make a more specific recommendation.
I needed to work on something else, which is why I can't tell right now.
But I will continue to work on this in the forseeable future :)
I did not knew about the StandaloneNanoSparqlServer.java file and will have a look at it.
I will tell you when I have something to report on this issue.
Last edit: Jan 2016-04-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to embed NanoSparqlServer into an existing application.
I did this according to https://wiki.blazegraph.com/wiki/index.php/NanoSparqlServer#Embedded_.28using_Jetty.29
I used NSSEmbeddedExample.java located here: https://sourceforge.net/p/bigdata/git/ci/master/tree/bigdata-sails/src/samples/com/bigdata/samples/NSSEmbeddedExample.java
The output from the application is:
The service seems to be running normally. Although when accessing localhost:8888 the server only lists the directory contents.
/bigdata/sparql is not found.
Any ideas?
Last edit: Jan 2016-04-06
The issue here is that the jetty.xml used needs to specify the path to the war file (or at least the skeleton). How are you including blazegraph? The StandaloneNanoSparqlServer in the executable jar is a pretty good example: https://github.com/blazegraph/database/blob/master/blazegraph-jar/src/main/java/com/bigdata/rdf/sail/webapp/StandaloneNanoSparqlServer.java.
The jetty.xml (https://github.com/blazegraph/database/blob/master/blazegraph-jar/src/main/resources/jetty.xml) in that case assumes that the WAR is at the root of the classpath.
It may work if you include the blazegraph.jar (bundled artifact) in your dependencies.
If you can provide more details on the artifacts you're including, we can make a more specific recommendation.
I created a ticket to update the documentation: https://jira.blazegraph.com/browse/BLZG-1858
Jan,
Just wanted to follow-up on this one. Were you able to track it down?
Thanks, --Brad
Thank you for your response, Brad.
I needed to work on something else, which is why I can't tell right now.
But I will continue to work on this in the forseeable future :)
I did not knew about the StandaloneNanoSparqlServer.java file and will have a look at it.
I will tell you when I have something to report on this issue.
Last edit: Jan 2016-04-05
OK -- sounds good. Just let us know.
Providing jettyXml as in StandaloneNanoSparqlServer.java did the trick!
After adding two lines of code it worked:
Thank you very much for your help!