Hi Jason,
I have made some progress with your config.
1/ I switched the development code to 9.3.3 so we have one target and
because I got that version to work with your config
9.3.3. was release 27/Aug/2015.
Don't know if your working from the source or not so I did a development
build of Fuseki2 with 9.3.3.
https://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena-fuseki/2.3.1-SNAPSHOT/
NB There are 2 builds for today - latest with Jetty 9.3.3 is
20150902.121407-19
2/ Fix for your config file below.
Needs some details from jetty.xml copied into it.
Andy
On 01/09/15 20:36, Jason Levitt wrote:
Back to square one.
This Jetty config file works fine with Jetty 9:
Which jetty version? I'm seeing differences between 9.1.1 and 9.3.3
With 9.3.2 I get a different error, more useful error (yes, I was using
9.3.2 at that point)
[2015-09-02 12:24:37] Server ERROR SPARQLServer: Failed to configure
server: null
java.lang.reflect.InvocationTargetException
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:422)
org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:627)
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:782)
which looks to be caused by:
> <New class="org.eclipse.jetty.server.HttpConnectionFactory">
> <Arg name="config"><Ref refid="httpConfig" /></Arg>
> </New>
and httpConfig is not defined. (I debug traced the Jetty code).
It says higher up:
<!-- HttpConnectionFactory instance using the common httpConfig -->
<!-- instance defined in jetty.xml
I copied the block from jetty.xml 9.3.3 into you configuration:
<New id="httpConfig"
</New>
Full copy below.
This is for 9.3.3 only - I tried the same approach with 9.1.1 and it
didn't work. Maybe my user error, maybe because your config makes a 9.3
specific call. Rather than worry about that, I switched the development
code base to 9.3.3.
Hey presto - server runs for me. Confirmed it is using the config by
changing the port but that's all the testing I have time for ATM.
(Looking for a job (= employment) can be quite time consuming!)
Andy
------------------------------------------------------------
Copy of new section, reformatted for email :-| , inserted before <Call>
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<New
....
</New>
<Call name="addConnector">
</Call>
</Configure>
--------- Full insert
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
<Set name="secureScheme">
<Property name="jetty.httpConfig.secureScheme"
default="https" />
</Set>
<Set name="securePort">
<Property name="jetty.httpConfig.securePort"
deprecated="jetty.secure.port"
default="8443" />
</Set>
<Set name="outputBufferSize">
<Property name="jetty.httpConfig.outputBufferSize"
deprecated="jetty.output.buffer.size"
default="32768" />
</Set>
<Set name="outputAggregationSize">
<Property name="jetty.httpConfig.outputAggregationSize"
deprecated="jetty.output.aggregation.size"
default="8192" />
</Set>
<Set name="requestHeaderSize">
<Property name="jetty.httpConfig.requestHeaderSize"
deprecated="jetty.request.header.size"
default="8192" />
</Set>
<Set name="responseHeaderSize">
<Property name="jetty.httpConfig.responseHeaderSize"
deprecated="jetty.response.header.size"
default="8192" />
</Set>
<Set name="sendServerVersion">
<Property name="jetty.httpConfig.sendServerVersion"
deprecated="jetty.send.server.version"
default="true" />
</Set>
<Set name="sendDateHeader">
<Property name="jetty.httpConfig.sendDateHeader"
deprecated="jetty.send.date.header"
default="false" />
</Set>
<Set name="headerCacheSize">
<Property name="jetty.httpConfig.headerCacheSize"
default="512" />
</Set>
<Set name="delayDispatchUntilContent">
<Property name="jetty.httpConfig.delayDispatchUntilContent"
deprecated="jetty.delayDispatchUntilContent"
default="true"/>
</Set>
<Set name="maxErrorDispatches">
<Property name="jetty.httpConfig.maxErrorDispatches"
default="10"/>
</Set>
<!-- Uncomment to enable handling of X-Forwarded- style headers
<Call name="addCustomizer">
<Arg><New
class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg>
</Call>
-->
</New>