|
From: Bryan T. <br...@bl...> - 2016-05-27 16:20:32
|
Adding Brad. He is the jetty wizard.
Thanks,
Bryan
On Fri, May 27, 2016 at 11:57 AM, Douglas Fils <dr...@gm...> wrote:
> Bryan,
> I am following this and the docs. However, when I pull the web.xml
> alter the lines for read only to:
>
> <context-param>
> <description>When true, the REST API will not permit mutation
> operations.</description>
> <param-name>readOnly</param-name>
> <param-value>true</param-value>
> </context-param>
>
> I run with: java -server -Xmx4g -Djetty.overrideWebXml=./override.xml
> -jar blazegraph.jar
>
> I get errors
>
> WARN : NanoSparqlServer.java:517: Starting NSS
> WARN : AbstractLifeCycle.java:212: FAILED
> org.eclipse.jetty.servlet.ServletHandler@239963d8:
> java.lang.IllegalStateException: Multiple servlets map to path: /sparql:
> REST API,REST API
> java.lang.IllegalStateException: Multiple servlets map to path: /sparql:
> REST API,REST API
>
> WARN : WebAppContext.java:506: Failed startup of context
> o.e.j.w.WebAppContext@4157f54e
> {/blazegraph,jar:file:/Users/dfils/Desktop/blazegraph/blazegraph.jar!/war,STARTING}{jar:file:/Users/dfils/Desktop/blazegraph/blazegraph.jar!/war}
> java.lang.IllegalStateException: Multiple servlets map to path: /sparql:
> REST API,REST API
>
>
> sorry to be pest, I feel like I'm missing something simple.
>
> Doug
>
>
>
> On Thu, May 26, 2016 at 2:50 PM Bryan Thompson <br...@bl...>
> wrote:
>
>> See https://wiki.blazegraph.com/wiki/index.php/NanoSparqlServer
>>
>> Customizing the web.xml
>>
>> You can override the default web.xml values in the executable jar using
>> the jetty.overrideWebXml property. The file you specify should override the
>> values that you'd like to replace. The web.xml values that default with the
>> blazegraph.jar are in web.xml
>> <https://github.com/blazegraph/database/blob/master/bigdata-war-html/src/main/webapp/WEB-INF/web.xml>
>> .
>>
>> -Djetty.overrideWebXml=/path/to/override.xml
>>
>> A full example is below.
>>
>> java -server -Xmx4g -Djetty.overrideWebXml=/path/to/override.xml -Dbigdata.propertyFile=/etc/blazegraph/RWS
>>
>>
>> Thanks,
>> Bryan
>>
>> On Thu, May 26, 2016 at 2:03 PM, Douglas Fils <dr...@gm...> wrote:
>>
>>> I am using the .jar version though, not a .war file in an app server.
>>> Am I still able to somehow override or reference a new web.xml file?
>>>
>>>
>>>
>>>
>>> On Thu, May 26, 2016 at 12:56 PM Bryan Thompson <br...@bl...>
>>> wrote:
>>>
>>>> You can control this in web.xml.
>>>>
>>>> Thanks,
>>>> Bryan
>>>>
>>>> On Thu, May 26, 2016 at 1:45 PM, Douglas Fils <dr...@gm...> wrote:
>>>>
>>>>> Hello,
>>>>> I am sure this is a simple question but I can't seem to launch a
>>>>> previously created blazegraph instance with the namespaces in "readonly"
>>>>> mode.
>>>>>
>>>>> Is there a simple way to add a -D option or something to
>>>>>
>>>>> java -server -Xmx4g -jar blazegraph.jar
>>>>>
>>>>> such that the existing namespaces are readonly on the sparql endpoint
>>>>> so that I can expose the server to the net without a fear of someone doing
>>>>> a update/delete etc on the triples?
>>>>>
>>>>> Thanks
>>>>> Doug
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Mobile security can be enabling, not merely restricting. Employees who
>>>>> bring their own devices (BYOD) to work are irked by the imposition of
>>>>> MDM
>>>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>>>> apps on BYO-devices by containerizing them, leaving personal data
>>>>> untouched!
>>>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>>>> _______________________________________________
>>>>> Bigdata-developers mailing list
>>>>> Big...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/bigdata-developers
>>>>>
>>>>>
>>>>
>>
|