Don't forget to think about what JVM Runtime you are running on. https://www.eclipse.org/jetty/documentation/9.4.x/alpn-chapter.html
Java 1.8? Then you need a -Xbootclasspath/p:<path_to_alpn_boot_jar> for your alpn-boot-<jvm-version-dependent>.jar JVM Version to alpn-boot table: https://www.eclipse.org/jetty/documentation/9.4.x/alpn-chapter.html#alpn-versions Java 9? Then you don't use alpn-boot, but instead you need `jetty-alpn-java-server` artifact present in your classpath (don't add this artifact for Java 1.8 runtime) Joakim Erdfelt / [email protected] On Mon, Feb 26, 2018 at 12:49 PM, Shawn Heisey <[email protected]> wrote: > Solr is an Apache project that uses Jetty. > > It includes a very stripped-down install of Jetty. Recently somebody > wanted to enable HTTP/2 on their Solr server. Presumably they're using > a client that supports it. > > Solr's install of Jetty doesn't include the jars for HTTP/2. These are > the jars we currently install in Jetty's lib directory (in our master > branch): > > gmetric4j-1.0.7.jar > javax.servlet-api-3.1.0.jar > jetty-continuation-9.4.8.v20171121.jar > jetty-deploy-9.4.8.v20171121.jar > jetty-http-9.4.8.v20171121.jar > jetty-io-9.4.8.v20171121.jar > jetty-jmx-9.4.8.v20171121.jar > jetty-rewrite-9.4.8.v20171121.jar > jetty-security-9.4.8.v20171121.jar > jetty-server-9.4.8.v20171121.jar > jetty-servlet-9.4.8.v20171121.jar > jetty-servlets-9.4.8.v20171121.jar > jetty-util-9.4.8.v20171121.jar > jetty-webapp-9.4.8.v20171121.jar > jetty-xml-9.4.8.v20171121.jar > metrics-core-3.2.2.jar > metrics-ganglia-3.2.2.jar > metrics-graphite-3.2.2.jar > metrics-jetty9-3.2.2.jar > metrics-jvm-3.2.2.jar > > So to make this possible, I need to add the three jars that are in > lib/http2 ... but from what I can tell, I also need to add > jetty-alpn-server. > > The Solr codebase uses ivy for dependency management. The dependencies > showing on Maven Central for the http2 jars and jetty-alpn-server don't > show any other dependencies that Solr is missing, but if I look at the > Jetty 9.4.8 download, I do see some other jars that look possibly > related -- like alpn-api, and a number of other jetty-alpn jars. > > Is Maven showing the correct dependency information, or do I need these > other alpn jars in order to enable HTTP/2? Is there anything else that > I need that I haven't touched on? > > Thanks, > Shawn > _______________________________________________ > 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 >
_______________________________________________ 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
