Avoiding .dll load errors by associating Shared Libraries with an application server
 Technote (troubleshooting)
 
Problem(Abstract)
Because the JVM™ is allowed to load a particular .dll file only once, starting a second enterprise application that attempts to load the same .dll will result in errors. Associating a shared library with an application server instead of an enterprise application will help you avoid .dll load errors.
 
Resolving the problem
The JVM is limited to loading a .dll file only once, resulting in an Enterprise Application error when a second attempt to load the same .dll occurs.
To circumvent this problem, you should associate shared libraries with the Application Server instead of with the Enterprise Application. To do this, keep the shared libraries that have been defined, but remove the association with the enterprise application.

Create a new classloader for WebSphere® Application Server:
  1. Open the Administrative Console, then from the left side expand Servers, then Application Servers, then click on the Server you want to work with.

  2. On the Configuration tab of the Application Server, scroll down and under Additional Properties click on Classloader then New.

    NOTE: The Application Server extension classloader will be the parent and any application classloader will be the child.

  3. Keep the default settings of PARENT_FIRST, then OK.

  4. Click on the new classloader, under Additional Properties click on Libraries, then Add.

  5. Map the shared library or libraries created earlier.

  6. Save and synchronize.

  7. Restart the Application Server. If you do nott recycle the application server with the new setting the shared library files will not be loaded.

This should solve the problem because the shared libraries are now server specific. So, restarting any application will have no effect on it.

WebSphere Application Server V5.0 Information Center article on shared libraries
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Classloader
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1140938
IBM Group: Software Group
Modified date: Sep 15, 2004