JAR, WAR, EAR (same format, only differs in suffix)
Structure
META-INF :
application.xml (standard descriptor)
optional, server specific descriptor
Web Module (.war)
Application Client Modeule
Resource Adapter Module (for EIS, packaged ".rar")
EJB Module (.jar)
EAR
EAR Structure
.classes for the module, under root
META-INF
MANIFEST.MF
ejb-jar.xml (standard descriptor)
optional server specific descriptor
Package enterprise bean in WAR
as .class files, in WEB-INF/classes
within JAR, and the JAR under WEB-INF/lib
ejb-jar.xml is optional in WAR, and should be placed in WEB-INF
defined in Java Servlet specification
structure
HTML, client-side classes, archives, static resources, etc., under root
WEB-INF
classes (dir): server-side classes
lib (dir): JAR files
Server side libraries
EJB
web.xml (web application descriptor)
for JSF
specify security information
or want to override annotation
ejb-jar.xml (optional, EJB deployment descriptor)