Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (10.2k points)

What is the difference between a .war and .ear file?

1 Answer

0 votes
by (46k points)

.war - web archive.   used to deploy web applications according to the servlet model. It is a jar file including a special record called WEB-INF and several files and directories inside it (web.xml, lib, classes) as well as all the HTML, JSP, images, CSS, JavaScript and additional sources of the web application

.ear - enterprise archive. It is used to extend enterprise applications including EJBs, web applications, and 3rd party libraries. It is additionally a jar file, it has a special record called APP-INF that contains the application.xml file, and it includes jar and war files.

Related questions

+1 vote
1 answer
asked Jul 31, 2019 in Java by Anvi (10.2k points)
+1 vote
1 answer
asked Aug 24, 2019 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer
asked Oct 13, 2019 in Java by Ritik (3.5k points)
0 votes
1 answer
asked Sep 29, 2019 in Java by Shubham (3.9k points)
0 votes
1 answer
asked Nov 26, 2019 in Java by Nigam (4k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...