Problem Description: After right-click on the Java project, run as there is no run on server option, as shown:
Solution:
The first step: Select the item, right-click on Properties
Step two: Enter Project Facets in the Find box, click the blue, as shown:
Step Three: Select the Dynamic Web Module, the application will be able to