Class loader properties

Table 10-1 describes the class loader properties.

Table 10-1: Class loader properties

Management Console

Ant

Description

Class Path

classPath

Specifies additional class path entries for the class loader, in addition to the server class path. Specify entries as a semicolon-separated list. For example:

~/deploy/webapps/foo/WEB-INF/classes;~/deploy/webapps/foo/WEB-INF/lib/**

You can use the following placeholders in entries:

  • ~, to specify the EAServer installation directory.

  • **, to specify all JAR files located in a terminal directory.

Parent Loader

parentClassLoader

Specifies the name of the parent class loader. If not specified, the parent is the “default” class loader.

Parent First

parentFirst

Specifies the default policy for resolving conflicts. If true (selected), the class loader uses the Parent First policy by default. See “Class loader delegation policies”.

Resolve First Locally

resolveFirstLocally

Lists classes that must be loaded with a child-first policy, overriding the parentFirst setting. Specify a comma-separated list of class names. You can use ** as a wildcard to represent all classes in a package and other packages that begin with the same prefix. For example, foo.bar.** specifies all classes in package foo.bar and classes in packages that begin with foo.bar, like foo.bar.munged, and foo.bar.alt.

Resolve First by Parent

resolveFirstByParent

Lists classes that must be loaded with a parent-first policy, overriding the parentFirst setting. Use the same syntax as for resolveFirstLocally.

Resolve First by System

resolveFirstBySystem

Lists classes that must be loaded by the system class loader. Use the same syntax as for resolveFirstLocally.