O'Reilly logo

Servlet, JSP and Spring MVC: A Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13

Deployment

Deploying a Servlet 3 application is a breeze. Thanks to the servlet annotation types and depending on how complex your application is, you can deploy a servlet/JSP application without the deployment descriptor. Having said that, the deployment descriptor is still needed in many circumstances where more refined configuration is needed. When the deployment descriptor is present, it must be named web.xml and located under the WEB-INF directory. Java classes must reside in WEB-INF/classes and Java libraries in WEB-INF/lib. All application resources must then be packaged into a single file with war extension. A war file is basically a jar file.

This chapter discusses deployment and the deployment descriptor, which is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required