hi, sorry for wasting your time, I got it to work by simply typing java -jar start.jar --add-to-startd=spdy
It changes the .ini files automatically. I was trying to do that manually to understand how they worked which I obviously hadn't. thanks, Michele Sent with MailTrack <https://mailtrack.io/install?source=signature&lang=en&[email protected]&idSignature=22> On 4 July 2014 19:00, Michele Rossi <[email protected]> wrote: > hi, > has anyone managed to bring up a server with SPDY and ALPN with JDK > 1.8.0_05? > > I tried to follow the docs here > > > http://www.eclipse.org/jetty/documentation/9.2.1.v20140609/alpn-chapter.html > > and here > > > http://www.eclipse.org/jetty/documentation/9.2.1.v20140609/spdy-configuring.html > > but I couldn't put together a working configuration. > > For a started I don't understand how the ALPN version is resolved starting > from the JDK version. > Initially I was getting the following error: > > WARNING: ** Unable to continue, required dependency missing. > [protonego-impl/${protonego}] > > > > Then I tried to manually edit protonego.mod replacing line > > > > protonego-impl/${protonego} > > with > > protonego-impl/alpn-1.8.0_05 > > but if I do that I get a different error: (pls excuse the big stack trace) > > 2014-07-04 18:55:13.409:WARN:oejx.XmlConfiguration:main: Config error at > <Call id="spdyConnector" name="addConnector"><Arg>| <New > class="org.eclipse.jetty.server.ServerC > onnector"><Arg name="server">| <Ref refid="Server"/>| > </Arg><Arg name="factories">| <Array > type="org.eclipse.jetty.server.Conne > ctionFactory"><Item>| <New > class="org.eclipse.jetty.server.SslConnectionFactory"><Arg > name="next"><Property name="protonego"/></Arg><Arg name="sslContext > Factory">| <Ref > refid="sslContextFactory"/>| </Arg></New>| > </Item><Item>|??? <Ref refid= > "protonego"/>| </Item><Item>| > <New > class="org.eclipse.jetty.spdy.server.http.HTTPSPDYServerConnectionFactory"><Arg > name="version" > type="int">3</Arg><Arg name="config">| > <Ref refid="sslHttpConfig"/>| </Arg><Set > name="initialWindowSize"><Property > name="spdy.initialWindowSize" default="65536"/></Set></New>| > </Item><Item>| <New > class="org.eclipse.jetty.spdy.server.http.HTTPSP > DYServerConnectionFactory"><Arg name="version" type="int">2</Arg><Arg > name="config">| <Ref > refid="sslHttpConfig"/>| > </Arg><Set name="initialWindowSize"><Property > name="spdy.initialWindowSize" default="65536"/></Set></New>| > </Item><Item>| <New c > lass="org.eclipse.jetty.server.HttpConnectionFactory"><Arg name="config">| > <Ref refid="sslHttpConfig"/>| > </Arg></N > ew>| </Item></Array>| </Arg><Set > name="host"><Property name="jetty.host"/></Set><Set name="port"><Property > name="spdy.port" default="443"/></S > et><Set name="idleTimeout"><Property name="spdy.timeout" > default="30000"/></Set></New>| </Arg></Call> > java.lang.reflect.InvocationTargetException in file:/C:/tmp/IOD_SERVER_ > 0.0.1-SNAPSHOT/iod-base/etc/jetty-spdy.xml > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:408) > at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:608) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:801) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1125) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1030) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:721) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417) > at > org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:354) > at > org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:262) > at > org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1243) > at java.security.AccessController.doPrivileged(Native Method) > at > org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1174) > Caused by: java.lang.NullPointerException > at > org.eclipse.jetty.server.AbstractConnector.addConnectionFactory(AbstractConnector.java:358) > at > org.eclipse.jetty.server.AbstractConnector.<init>(AbstractConnector.java:190) > at > org.eclipse.jetty.server.AbstractNetworkConnector.<init>(AbstractNetworkConnector.java:44) > at > org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:210) > at > org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:130) > ... 15 more > > > My start.ini contains the following lines: > > > --module=server > threads.min=10 > threads.max=200 > threads.timeout=60000 > jetty.output.buffer.size=32768 > jetty.request.header.size=8192 > jetty.response.header.size=8192 > jetty.send.server.version=true > jetty.send.date.header=false > jetty.dump.start=false > jetty.dump.stop=false > > --module=deploy > > --module=ext > --module=ssl > --module=protonego > --module=spdy > > --module=resources > --module=requestlog > --module=lowresources > > > I am starting the server as follows: > > java -Djetty.base=./iod-base > -Xbootclasspath/p:./iod-base/lib/alpn/alpn-boot-8.0.0.v20140317.jar > -Djetty.logs=./iod-base/logs > -Djetty.home=./jetty-distribution-9.2.1.v20140609 > -Dlogback.configurationFile=./iod-base/logback.xml -Dconfig.dir=./iod-base/ > -Denv=DEV -jar ./jetty-distribution-9.2.1.v20140609/start.jar > > > If this is all described in an obvious document I apologise in advance for > not being able to find it (I did try to RTFM). > > Any help greatly appreciated. > > Many thanks, > Michele > >
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
