简体   繁体   English

如何在JDK8上使用SPDY运行Jetty?

[英]How to run Jetty with SPDY on JDK8?

For a few days we have JDK8. 几天来,我们有了JDK8。 I have tried to run Jetty with SPDY server. 我试图用SPDY服务器运行Jetty。 In JDK8 there is no NPN support so it ends with: 在JDK8中,没有NPN支持,因此其结尾为:

[qtp22068985-16-selector-ServerConnectorManager@12e7b0e/1] WARN
org.eclipse.jetty.io.SelectorManager - Exception while notifying connection SslConnection@e1448a{NEED_UNWRAP,eio=-1/-1,di=-1} ->
NPNServerConnection@382d40{IDLE}
java.lang.NoSuchMethodError:
sun.security.ssl.HandshakeHash.<init>(ZZLjava/util/Set;)V
    at sun.security.ssl.Handshaker.activate(Handshaker.java:493)

I have run it with npn-boot-1.1.6.v20130911.jar on CLASSPATH which works with newest JDK7. 我已经在CLASSPATH上使用npn-boot-1.1.6.v20130911.jar运行了它,该版本可与最新的JDK7一起使用。

Is there any workaround on how to run Jetty with SPDY on JDK8? 关于如何在JDK8上使用SPDY运行Jetty有任何解决方法?

I am the implementer of NPN in Jetty. 我是Jetty中NPN的实施者。

NPN is implemented by modifying the JDK classes for the lack of a TLS Extension API in the JDK. 通过在JDK中缺少TLS扩展API的情况下修改JDK类来实现NPN。 The NPN versions match strictly a JDK version as specified in the documentation . NPN版本严格匹配文档中指定的JDK版本。

For JDK 8 we don't plan to support NPN. 对于JDK 8,我们不打算支持NPN。 Instead, we will support ALPN which is the successor to NPN, and backport the ALPN implementation to JDK 7 too. 相反,我们将支持ALPN(它是NPN的后继产品),并将ALPN实现也反向移植到JDK 7。

The implementations for ALPN are already done in a branch, but not integrated yet in the main Jetty build. ALPN的实现已在分支中完成,但尚未集成到主要的Jetty构建中。

You have to be patient for a little while, we need to finalize a bunch of things and integrate ALPN in Jetty master. 您必须耐心等待一会儿,我们需要完成一些工作并将ALPN集成到Jetty master中。 When that is done we'll blog about. 完成后,我们将在博客中进行介绍。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM