
TUTORIALS POINT
Simply Easy Learning Page 26
Create WAR File
Now our applictaion is working fine and we are ready to export it as a war file. Follow the following steps:
Go into your project's bin-release directory C:\workspace\HelloWorld\bin-release
Select all the files & folders available inside bin-release directory.
Zip all the selected files & folders in a file called HelloWorld.zip.
Rename HelloWorld.zip to HelloWorld.war.
Deploy WAR file
Stop the tomcat server.
Copy the HelloWorld.war file to tomcat installation directory > webapps folder.
Start the tomcat server.
Look inside webapps directory, there should be a folder HelloWorld got created.
Now HelloWorld.war is successfully deployed in Tomcat Webserver root.
Run Application
Enter a url in web browser: http://localhost:8080/HelloWorld/HelloWorld.html to launch the application
Server name (localhost) and port (8080) may vary as per your tomcat configuration.
Comentários a estes Manuais