How to set up eclipse with GWT and (regular servlet) Jetty backend

限于喜欢 提交于 2020-01-02 07:47:27

问题


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 :-(


回答1:


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.



来源:https://stackoverflow.com/questions/10199722/how-to-set-up-eclipse-with-gwt-and-regular-servlet-jetty-backend

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!