Sample Applications cause problem with Global Security enabled
 Technote (troubleshooting)
 
Problem(Abstract)
When enabling Global Security on IBM® WebSphere® Application Server, problems can be encountered if WBISF Sample Applications are installed and not explicitly set up to run with security enabled.
 
Symptom
In one particular case, when global security is enabled, the following error messages are seen, causing the server to not start properly:



WMSG0019E: Unable to start MDB Listener PriceGenHeartBeatMDB

SECJ4030E: Unrecognizable Callback index = 2 com.ibm.websphere.
security.auth.callback.WSCredTokenCallbackImpl

SECJ4014E: Login Module com.ibm.ws.security.web.AuthenLoginModule detected unsupported com.ibm.websphere.security.auth.callback.WSCredTokenCallbackImpl callback in CallbackHandler javax.security.auth.callback.UnsupportedCallbackException: Unrecognized Callback
at com.ibm.ws.security.auth.j2c.WSPrincipalMappingCallbackHandler. handle(WSPrincipalMappingCallbackHandler.java:128)
 
Cause
The problem in this case is that WebSphereTrader.ear explicitly uses WSCredTokenCallbackImpl callback handler to login.


J2C auth data only supports the following two callbacks in WAS5.x:
  • com.ibm.ws.security.auth.j2c.WSManagedConnectionFactoryCallback
  • com.ibm.ws.security.auth.j2c.WSAuthDataAliasCallback

Note: in 6.0, those two callback handler are changed to:
  • com.ibm.wsspi.security.auth.callback.WSManagedConnectionFactoryCallback
  • com.ibm.wsspi.security.auth.callback.WSMappingPropertiesCallback
 
Resolving the problem
The WebSphereTrader sample is optionally installed with WBI-SF and is part of the Asynchronous Beans samples.


The sample only supports security in a limited fashion. Each sample requires some manual configuration in order to allow it to work properly with security enabled. This is documented in each sample's Configure and Run section of the samples gallery.

The samples are optional and shouldn't normally be installed unless done explicitly. Uninstalling the offending sample application, in this case, WebSphereTrader.ear and restarting the server solves the problem.
 
 
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 > Security
Operating system(s): AIX
Software version: 5.1
Software edition:
Reference #: 1212058
IBM Group: Software Group
Modified date: Jan 20, 2006