Configuring web module class loaders
You can set values that control the class-loading behavior of an installed web module.
Before you begin
Make sure that you installed a web module on an application server.
About this task
Configure the class loader order value of an installed web module. By default, a web module has its own web application archive (WAR) class loader to load the contents of the web module, which are in the WEB-INF/classes and WEB-INF/lib directories.
An application class loader is the parent of a WAR class loader. The WAR class-loader policy value of an application class loader determines whether the WAR class loader or the application class loader is used to load the contents of the web module.
The default WAR class loader policy value is Class loader for each WAR file in application. If the policy is set to Class loader for each WAR file in application, then each web module receives its own class loader whose parent is the application class loader. If the policy is set to Single class loader for application, then the application class loader loads the web module contents as well as the enterprise bean (EJB) modules, shared libraries, resource adapter archive (RAR) files, and dependency Java™ archive (JAR) files associated to an application. Thus, the configuration of the parent application class loader affects the WAR class loader. You can set the policy on the Class loading and update detection page of an administrative console.
Use the administrative console to configure the application and WAR class loaders.
Procedure
What to do next
Save the changes to the administrative configuration.