How to setup GWT for Tomcat?

前端 未结 4 552
傲寒
傲寒 2021-02-14 08:43

I am new to GWT and learning it via the the Google documents. How do I setup GWT with Tomcat? I am required to intergrate it with Tomcat for work purposes.

4条回答
  •  无人共我
    2021-02-14 08:56

    There is nothing special to do. You just have to compile your gwt project, and export the war folder to the Tomcats webapps folder.

    What IDE are you using? If you are using eclipse or similar, and a newer version of tomcat, just export the contents of the war folder as a regular zip archive. Then change the extension from .zip to .war, and copy it to the webapps folder. Restart tomcat, and it will automatically unzip the archive and create the appropriate folder. I.E. the contents of the .war archive might look something like the following:

    project_name.war
       - css
       - images
       - WEB-INF
       - gwt compiled_javascript folder
       - index.html
    

提交回复
热议问题