ClassNotFound exception when configuring JAAS Login Module callback handlers
 Technote (troubleshooting)
 
Problem(Abstract)
An error is received if JAAS login module callback handlers are configured for Web Services. The error occurs if the JAAS login module is deployed using either of the documented methods that are with the application or as a Shared Library.
 
Symptom
The following error is received if JAAS login module callback handlers are configured for Web Services. The error occurs if the JAAS login module is deployed using either of the documented methods that are with the application or as a Shared Library.

com.ibm.wsspi.wssecurity.SoapSecurityException: WSEC5089E:
Unable to instantiate CallbackHandler:
java.lang.ClassNotFoundException:
 
Cause
There are two parts to this failure:
  1. First, the context classloader has not been set on the thread of execution.
  2. Second, code used to instantiate the callback handler class does not use the thread context classloader.
 
Resolving the problem
Put all necessary files in java/jre/lib/ext.
This issue is being addressed in WebSphere Application Server Version 6.x It is not addressed in Version 5.x due to the test considerations. There is a possibility of breaking applications already deployed in the field with the necessary changes and the necessary changes cannot be tested sufficiently.
 
 
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): AIX
Software version: 5.1.1.3
Software edition:
Reference #: 1201893
IBM Group: Software Group
Modified date: Nov 13, 2008