在启用 https 的情况下运行 gwt? [英] Run gwt with https enabled?

查看:34
本文介绍了在启用 https 的情况下运行 gwt?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在运行一个没有安全性的 GWT 站点,但需要切换到 HTTPS.

I'm currently running a GWT site with no security, but need to make the switch over to HTTPS.

工作的非安全版本使用以下参数运行:

The working non-secure version runs with these arguments:

-port 8888 -startupUrl ui/index.jsp com.example.EntryPoint

我已经读过,简单地添加 -server :ssl 会导致网站启用 HTTPS:

I have read that simply adding -server :ssl will cause the site to be served with HTTPS enabled:

-port 8888 -startupUrl ui/index.jsp -server :ssl com.example.EntryPoint

然而,有了这个我只是得到

However, with this I simply get

[ERROR] Unable to load server class ''
[ERROR] java.lang.ClassNotFoundException: 
[ERROR]     at java.lang.Class.forName0(Native Method)
[ERROR]     at java.lang.Class.forName(Class.java:249)
[ERROR]     at com.google.gwt.dev.DevMode$ArgHandlerServer.setString(DevMode.java:108)
[ERROR]     at com.google.gwt.util.tools.ArgHandlerString.handle(ArgHandlerString.java:26)
[ERROR]     at com.google.gwt.util.tools.ToolBase.processArgs(ToolBase.java:225)
[ERROR]     at com.google.gwt.dev.ArgProcessorBase.processArgs(ArgProcessorBase.java:29)
[ERROR]     at com.google.gwt.dev.DevMode.main(DevMode.java:281)
[ERROR] Google Web Toolkit 2.1.0

我不确定是我做错了什么还是那个方法不再有效?是否有人使用 SSL 成功运行此命令或 gwt?

I'm not sure if I'm doing something wrong or if that method doesn't work any more? Is anyone successfully running this command or gwt with SSL?

推荐答案

假设您正在尝试使用嵌入式 jetty 服务器,则在 r9628.您使用的是 GWT 2.1,所以要么尝试更新到更新的版本(至少 GWT 2.3),要么为您的应用程序使用外部 SSL 预配置服务器(选项 -noserver).

Assuming you are trying to use the embedded jetty server, SSL support was added in r9628. You are using GWT 2.1, so either try to update to a more recent version (at least GWT 2.3), or use an external SSL-preconfigured server for your application (option -noserver).

这篇关于在启用 https 的情况下运行 gwt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆