3
votes

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
Are you using Google Plugin for Eclipse? It's kind of straight-forward :S - Carlos Gavidia-Calderon
yup... latest version, on Eclipse Indigo - Tor P
By jetty backend, you mean your own jetty server and not the one provided by GWT with devmode? - Ganesh Kumar
Yes... My own server running Jetty, running in eclipse as a server via the Jetty server plugin - Tor P

1 Answers

1
votes

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.