Enabling the Dynamic Web Module in Fac Facets may not help here in maven projects.
Because maven projects are structured differently (target / sampleApp-1.0-SNAPSHOT.war) than regular Dynamic web projects (WebContent /).
So, if you use the Dynamic Web Module manually, eclipse will try to use the "WebContent" directory structure as the deployment directory for the Application Server, which will not be the case in maven projects.
The solution is to use the m2e-wtp plugin for deployment.
If you installed the m2e-wtp plugin , it will automatically detect your maven project type and show you the Run as server option in the "Run as" section of the "Project" menu.
source share