简体   繁体   English

GWT更改码头版本

[英]GWT change Jetty version

I want to change GWT's v. 2.7.0 embedded Jetty version v. 8.1.12.v20130726 to later jetty v. 9.2.22.v20170606 , because for some reason Atmosphere websockets do not work with jetty 8 version (while it works with 9). 我想将GWT的v. 2.7.0嵌入式Jetty版本v. 8.1.12.v20130726版本v. 8.1.12.v20130726为更高的jetty v. 9.2.22.v20170606 ,因为由于某些原因, Atmosphere v. 9.2.22.v20170606用于jetty 8版本(虽然它可与9版本一起使用) )。

To make sure that it's Jetty that's causing problems for Atmosphere (and not GWT super dev mode), I deployed application.war to tomcat/Jetty servers: 为了确保是Jetty引起了Atmosphere问题(而不是GWT超级开发模式),我将application.war部署到了tomcat / Jetty服务器:

  • Tomcat 7.0.79: works Tomcat 7.0.79:有效
  • Jetty 9.2.22.v20170606: works 码头9.2.22.v20170606:作品
  • Jetty 8.1.12.v20130726: does not work 码头8.1.12.v20130726:不起作用

I found a thread asking quite a similar question, GWT: Jetty version in dev mode , and I would like to expand on that. 我发现一个线程问了一个类似的问题,即GWT:开发人员模式下的Jetty版本 ,我想对此进行扩展。 If I were to implement ServletContainerLauncher , would it not conflict with JettyLauncher ? 如果我要实现ServletContainerLauncher ,它是否与JettyLauncher冲突? How should I go about writting my own ServletCotainerLauncher for dev mode? 我应该如何为开发模式编写自己的ServletCotainerLauncher

If you have any better ideas then writing my own ServletContainerLauncher, I would like to hear them. 如果您有任何更好的想法,请编写我自己的ServletContainerLauncher,我想听听他们的想法。

GWT 2.8 underwent specific modifications to make this possible - it wasn't simple, though if you review the commits, you could probably make the same changes. GWT 2.8进行了特定的修改以使之成为可能-这并不简单,尽管如果您查看提交,则可能会进行相同的更改。

Instead, I strongly urge you to consider moving to GWT 2.8.2, the latest version of GWT, released just a few days ago. 相反,我强烈建议您考虑使用几天前发布的GWT最新版本GWT 2.8.2。 The version you are using, GWT 2.7.0, is almost three years old, and has a number of other bugs that have been resolved since then. 您使用的版本GWT 2.7.0已有近三年的历史,此后已解决了许多其他错误。

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

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