如何用GWT和(常规servlet)Jetty后端设置eclipse [英] How to set up eclipse with GWT and (regular servlet) Jetty backend

查看:193
本文介绍了如何用GWT和(常规servlet)Jetty后端设置eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何使用GWT和jetty后端(常规网络应用程序,而不是应用程序引擎)在Eclipse中设置项目?或者知道一个很好的链接(尝试谷歌,但没有骰子)



我一直在试图设置这个整个晚上,但只是遇到了一些奇怪问题,有些似乎是WST / Jetty中的错误,另一个是主机页面不起作用: - (

解决方案

p>有三种方式与GWT一起运行自己的码头服务器。



如果您运行自己的码头服务器,则必须在GWT中使用 -noserver 参数或解决方案一,您可以使用 -server JettyLauncher



使用您自己的 JettyLauncher.class 或使用 gwt-jetty
  • 使用 Jetty maven插件启动码头服务器(请参阅他re 此处的信息)

  • 使用 Jetty WTP插件进行eclipse启动码头服务器。

  • 我个人使用解决方案3(Jetty WTP插件)为我的GWT项目启动了一个自定义的Jetty 7服务器,它的工作正常。 / p>

    Does anybody know how to set up a project in Eclipse with GWT and a jetty backend (regular web app, not app engine)? Or know of a good link (tried googling it, but no dice)

    I've been trying to set up this all evening, but just ran into a number of strange problems, some seems to be bugs in WST/Jetty and the other is that the host page just doesn't work :-(

    解决方案

    There are three ways to run your own jetty server together with GWT.

    If you run your own jetty server you have to invoke dev-mode in GWT with the -noserverparameter or for solution one you can use -server JettyLauncher

    1. Use your own JettyLauncher.class or use gwt-jetty.
    2. Use Jetty maven plugin to launch the jetty server (see here and here for infos)
    3. Use Jetty WTP plugin for eclipse to start a jetty server.

    I personally used solution 3 (Jetty WTP plugin) to start a custom Jetty 7 server for my GWT project and it works fine.

    这篇关于如何用GWT和(常规servlet)Jetty后端设置eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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