PQ79983: RESTARTING/REDEPLOYING APPLICATION GETS ERROR MESSAGE "JAVA.LANG.UNSATISFIEDLINKERROR"

 A fix is available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
App server starts up, but if the application is re-deployed
(or restarted) the following errors can occur:

java.lang.UnsatisfiedLinkError: Native Library
/aurora/system/lib/libJavaMVSJob.so
 already loaded in another classloader


Trace: 2003/09/04 19:03:33.266 01 t=AC3088 c=A1.1 key=P8
(13007002)
  FunctionName: com.ibm.ws.classloader.CompoundClassLoader
  SourceId: com.ibm.ws.classloader.CompoundClassLoader
  Category: DEBUG
  ExtendedMessage: looking for library: libJavaMVSJob.so
unable to load JavaMVSJob DLL
java.lang.UnsatisfiedLinkError: Native Library
/aurora/system/lib/libJavaMVSJob.so already loaded in another
classloader


It seems that the classloader references for these JNI methods
is NOT being freed when the application ends so the classes
can NOT be reloaded.
.
This APAR was taken to document the error that the customer
may see, as well as to document the LOCAL FIX that can be
used to circumvent the problem.
.
WebSphere Change Team is working with the Java Change Team,
to identify what code will need to be fixed to resolve the
issue.
.
Local fix
Recycling the Application Server can circumvent this problem.

Another fix:
Remove the JAR file from the WAR, that had the class calling the
system.load for the .so file and putting that JAR in a shared
libarry on a classloader at the server level.
Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 V5.0 for z/OS                                *
****************************************************************
* PROBLEM DESCRIPTION: Problem Description:                    *
*                      --------------------------------------- *
*                      java.lang.UnsatisfiedLinkError: Native  *
*                      Library <native library name> already   *
*                      loaded in another classloader. The      *
*                      following message will be seen in the   *
*                      servants trace:                         *
*                      BBOO0223I  Servlet Error - Native       *
*                      Library <library name> already loaded   *
*                      in another classloader :                *
*                      java.lang.UnsatisfiedLinkError: ...     *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
A java.lang.UnsatisfiedLinkError may occur with applications
that have native libraries installed as part of the application.
When an application is stopped and restarted via the
Administrative Console the reference to the native library is
not released because the reference to the loading classloader is
is still held by the WebSphere runtime. The following is a
partial possible stack trace when the native library is loaded
when a servlet is referencing the native library at invocation.

java.lang.UnsatisfiedLinkError: Native Library <library name>
already loaded in another classloader .
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1802)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1694)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:867)
at com.ibm.wsc.util.JSABInfo.<clinit>(JSABInfo.java:29)
at com.ibm.wsc.util.Ping.doWork(Ping.java:67)
at com.ibm.wsc.util.Ping.doGet(Ping.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Problem conclusion
WebSphere runtime has been updated to insure that the reference
to the application classloader is released when applications are
stopped.

APAR PQ79983 is associated with SERVICE LEVEL W502009 of
WebSphere Application Server V5.0 for z/OS.
Temporary fix Comments
APAR information
APAR number PQ79983
Reported component name WEBSPHERE FOR Z
Reported component ID 5655I3500
Reported release 500
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Special Attention NoSpecatt
Submitted date 2003-10-23
Closed date 2004-05-21
Last modified date 2004-06-03

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
BBOUBINF          

Publications Referenced

Fix information
Fixed component name WEBSPHERE FOR Z
Fixed component ID 5655I3500

Applicable component levels
R500 PSY UQ88747    UP04/05/27 P F405

  Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.


Document Information


Current web document: swg1PQ79983.html
Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server for z/OS
Operating system(s):
Software version: 500
Software edition:
Reference #: PQ79983
IBM Group: Software Group
Modified date: Jun 3, 2004