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.