Running Google Web Application Project on your tomcat server

By mxro

I was wondering how I could run a Google Web Application Project created with the wizard in eclipse (part of the google eclipse plugin) on my own tomcat server.

Well, its fairly simple.

First it should be noted that when creating the project with the wizard you should deselect the google app engine sdk. You can still run your projects on google app engine, so you just make sure that you do not use any app engine specific functionality (what I would not recommend anyway to keep your projects portable).

If this prerequisite is given, you can you can just select the project you have created (the root folder) and click Google’s red box GWT button “GWT compile project”.

Then you can go to the project folder in the eclipse workspace. One of the folders created is “war”. Create a new folder in your tomcat webapps folder and name it according to your project name eg “myproject”. Now you can copy all the contents from “war” to “myproject”.

Start tomcat and volia the application should be running.

(I am not too sure whether there might be issues in more complex projects given that google uses jetty for the debug mode that can be strated directly from eclipse)

Leave a Reply