The simplest way to deploy your application is to use a single server for both your static content and your servlet classes. If you created your project with webAppCreator, you can simply run ant war in your project directory. The Ant build.xml file should do the following things automatically:
- Copy any necessary libraries into war/WEB-INF/lib. You may need to update your build.xml file if you've added additional library dependencies beyond gwt-servlet.jar.
- Compile your Java source files into war/WEB-INF/classes. This is necessary to run your server code on the web server.
- Run the GWT compiler on your GWT module. This produces all of the GWT output files you need.
- Zip up the contents of your war directory into a .war file.
Now just copy your .war file into Tomcat's /webapps folder. If you have default configuration settings it should automatically unzip the .war file.