I’m completely mystified that I can’t (easily!) find Oracle’s latest reference specifications for JAR, WAR and EAR file structures. By this I mean:
JARs
- File structure for JAR
- Contents and structure of
MANIFEST-INF - Schema for latest version
MANIFEST.MF
WARs
- File structure for a WAR
- Contents and structure of
MANIFEST-INF - Contents and structure of
WEB-INF - Schema for latest version of
web.xmlor any other config files
EARs
- File structure for an EAR
- Schema for latest version of
application.xmland any other config files
Not only can I not find any of these items, I can’t even find something off the Oracle site (docs.oracle.*) entitled “WAR File Specification”, “EAR File Specification” or their likes. Am I completely missing something here?
The search results I do find are for servlet specifications, and old versions of servlets at that (2.2, etc.).
I’m looking for the definitive URLs that tell me exactly how I need to structure and configure my JARs, WARs and EARs according to the latest specs. Thanks in advance.
(I assume you meant META-INF and not MANIFEST-INF…)
JARs:
Latest is Java7, see http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html for all of the three listed above:
WARs
All these specs are quite “normalized”, i.e. distributed and referencing various other sources. Since Oracle took over Sun all the links are in the same lousy state as all the other Oracle documentation :-/
Hope that helps.