What is the EAR file ?
The EAR is Enterprise Archive file. The file has the same format as a regular JAR file (which is the same as ZIP, incidentally). The EAR file contains everything necessary to deploy an enterprise application on an application server. It contains both the .war (Web Archive) file containing the web component of the application as well as the .jar file. In addition there are some deployment descriptor files in XML.