Skip to content

Commit

Permalink
Remove references to manifest extensions - this was removed in Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
markt-asf committed Mar 27, 2024
1 parent ed8952a commit d0c8773
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions spec/src/main/asciidoc/servlet-spec-body.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5425,7 +5425,7 @@ the following types of configuration and deployment information:

* Security

==== Dependencies On Extensions
==== Common Dependencies

When a number of applications make use of the
same code or resources, they will typically be installed as library
Expand All @@ -5440,28 +5440,6 @@ loading these library files must be the same for all web applications
within the same JVM. This class loader instance must be somewhere in the
chain of parent class loaders of the web application class loader.

Application developers need to know what
extensions are installed on a web container, and containers need to know
what dependencies servlets in a WAR have on such libraries in order to
preserve portability.

The application developer depending on such an
extension or extensions must provide a `META-INF/MANIFEST.MF` entry in
the WAR file listing all extensions needed by the WAR. The format of the
manifest entry should follow standard JAR manifest format. During
deployment of the web application, the web container must make the
correct versions of the extensions available to the application
following the rules defined by the Optional Package Versioning mechanism
(`http://docs.oracle.com/javase/8/docs/technotes/guides/extensions/versioning.html`).

Web containers must also be able to recognize
declared dependencies expressed in the manifest entry of any of the
library JARs under the `WEB-INF/lib` entry in a WAR.

If a web container is not able to satisfy the
dependencies declared in this manner, it should reject the application
with an informative error message.

==== Web Application Class Loader

The class loader that a container uses to load
Expand Down

0 comments on commit d0c8773

Please sign in to comment.