Added the dynamic Web project module to the GWT project.

Source: Internet
Author: User

Recently, a project used server features and can only be used in Tomcat, but GWT was used, so I had to add a web module to the GWT Project (I prefer jetty plug-in ), refer to the kidiaoer tutorial to add the web module. The process is as follows:

Step 2: Modify the. Project File

Add:
<Buildcommand>
<Name> org. Eclipse. WST. Common. Project. facet. Core. Builder </Name>
<Arguments>
</Arguments>
</Buildcommand>

Add:
<Nature> org. Eclipse. Jem. workbench. javaemfnature </nature>
<Nature> org. Eclipse. WST. Common. modulecore. modulecorenature </nature>
<Nature> org. Eclipse. WST. Common. Project. facet. Core. Nature </nature>

Step 2: Add facets

After saving, you can:

Step 2 modify the resource path

Remove webcontent and set your own resource root path, such as the GWT directory/Web

 

Step 2 set context Root

After that, you can add your project to the Tomcat server plug-in.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.