Configures the class loader for the web module.
sun-web-app (sun-web.xml)
The following table describes subelements for the class-loader element.
Table A–20 class-loader Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property, which has a name and a value. |
The following table describes attributes for the class-loader element.
Table A–21 class-loader Attributes
If the delegate element is set to false, the class loader delegation behavior complies with the Servlet 2.4 specification, section 9.7.2. If set to its default value of true, classes and resources residing in container-wide library JAR files are loaded in preference to classes and resources packaged within the WAR file.
Portable programs that use this element should not be packaged with any classes or interfaces that are a part of the Java EE specification. The behavior of a program that includes such classes or interfaces in its WAR file is undefined.
The following table describes properties for the class-loader element.
Table A–22 class-loader Properties
Property |
Default |
Description |
---|---|---|
false |
If true, specifies that all JAR and ZIP files in the WEB-INF/lib directory that start with a period (.) are ignored by the class loader. |