WAR (file format)

Web ARchive
Filename extension
.war
Internet media typeapplication/java-archive
Magic numberPK\x03\x04 (standard ZIP file)
Developed bySun Microsystems
Container forJSP, Java Servlet
Extended fromJAR

In software engineering, a WAR file (Web Application Resource[1] or Web application ARchive[2]) is a file used to distribute a collection of JAR-files, JavaServer Pages, Java Servlets, Java classes, XML files, tag libraries, static web pages (HTML and related files) and other resources that together constitute a web application.

  1. ^ Crossley, Allistair. "Apache Tomcat 8 (8.0.44) - Tomcat Web Application Deployment". Apache Software Foundation. Retrieved 2017-06-27.
  2. ^ Hunter, Jason (1999-10-15). "What's New in Java Servlet API 2.2?". JavaWorld. Retrieved 2020-11-08.