Setting the V5.0 resource adapter authentication mechanism to NONE causes a J2CA0014 exception
 Technote (troubleshooting)
 
Problem(Abstract)
When installing a resource adapter that requires an authentication mechanism preference of NONE or " " (null or empty) on any release of WebSphere® Application Server V5.0 , an exception occurs in the activity log that is similar to the following example:

mercurii\io10sv01\se01(CREATE_CONNECTOR_REFERENCE_EXCP_J2CA0014"
com.ibm.ejs.resources.J2CAMessages
java.lang.Exception: RA does not support BasicPassword
 
Cause
The root of the problem is that the default authentication mechanism preference is BasicPassword, when it should be NONE.
The Java™ 2 Connectivity (J2C) connection manager checks the validity of the authentication mechanism specified before binding the connection factory into the Java™ Naming and Directory Interface (JNDI). Resource adapters that do not specify an authentication mechanism receive the default value of BasicPassword, which results in the J2CA0014 error.
 
Resolving the problem
A fix for this problem is included in WebSphere® Application Server Cumulative Fix 5.0.2.3 and higher.
If an upgrade is not possible at the present time, a workaround for this problem is included in the following fixes:
  • WAS_J2C_10-16-2003_5.0.1_cumulative_Fix.jar
  • WAS_J2C_11-11-2003_5.0.2_cumulative_Fix.jar

These fixes be obtained by contacting IBM WebSphere Application Server support.

In addition to the fix, set the Connection Factory res-auth attribute to Application (or Per Connection Factory) and not Container. Failure to make this change causes the following warning message to log each time the connection is allocated (which fills the logs):

J2CA0114W: No container-managed authentication alias found for connection factory or datasource {0}.

After the change is made, the following message is logged only once for each connection factory:

J2CA0107I: Component-managed authentication alias not specified for connection factory or datasource {0}.
 
 
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 > Java 2 Connectivity (J2C)
Operating system(s): Windows
Software version: 5.0.2.2
Software edition:
Reference #: 1157954
IBM Group: Software Group
Modified date: Mar 3, 2005