Just right-click on the project and say that the war is for export.
Select the appropriate server environment for which you created the project.
Then put this war file in the webapps folder in case of apache tomcat and restart the server.
And you did it. :)
source
share