Deploying the Web Application on Another Server

After you have developed your Web application, you might want to deploy it on another server. This can be accomplished by packaging the files of the Web application in the webapps folder and copying it to the deployment machine.

Packaging Web Applications in WAR Files

Web applications can be packaged in Web Archive or WAR files. This allows them to be stored and easily installed on another server. WAR files can be created using the jar command or using a zipping utility, and providing them with a .war extension.

To create the WAR file for the AuctionStation application, launch a command window, set the current working directory to <jakarta-tomcat>/webapps/AuctionStation, and enter the jar command ...

Get Java Server Pages from scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.