运行https启用gwt? [英] Run gwt with https enabled?

查看:105
本文介绍了运行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 中添加了SSL支持。您正在使用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天全站免登陆