PQ90648: GETCONNECTION FAILS IN SERVLET INIT METHOD IF RESAUTH=CONTAINER AND THERE IS NO CONTAINER-MANAGED ALIAS DEFINED FOR DATASOURCE

 A fix is available

Obtain the fix for this APAR



APAR status
Closed as program error.

Error description
Customer has a getConnection method coded in their servlet's
init method with no userid or password specified.  The
resource authentication in web.xml (res-auth) is set to
Container, and no Container-managed alias is defined for the
datasource.  During server startup, the following error is
seen in the application servant job output:
.
java.sql.SQLException: DSRA9002E: ResourceException with error
code null: javax.resource.ResourceException:
ThreadIdentitySecurityHelper.finalizeSubject() failed attempting
to get local OS invocation subject
com.ibm.ejs.j2c.ThreadIdentitySecurityHelper.finalizeSubject(
 ThreadIdentitySecurityHelper.java:397)
com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionM
Manager.java:494
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcD
ataSource.java:215)
com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcD
ataSource.java:306)
Local fix
If your <res-auth> is set to Application.
-Specify the userid and password on the getConnection call
-or use a component managed alias
If your <res-auth> is set to Container
-use a container managed alias.
Problem summary
****************************************************************
* USERS AFFECTED: All users of WebSphere Application Server    *
*                 V5.0 for z/OS                                *
****************************************************************
* PROBLEM DESCRIPTION: Customer has a getConnection method     *
*                      coded in their servlet's init method    *
*                      with no userid or password specified.   *
*                      Resource authentication in web.xml is   *
*                      set to Container, and no                *
*                      Container-managed alias is defined for  *
*                      the datasource.  During server          *
*                      startup, the following error is seen    *
*                      in the application servant job output:  *
*                      java.sql.SQLException: DSRA9002E:       *
*                      ResourceException with error code       *
*                      null:                                   *
*                      javax.resource.ResourceException:       *
*                      ThreadIdentitySecurityHelper.           *
*                      finalizeSubject() failed attempting     *
*                      to get local OS invocation subject      *
*                      com.ibm.ejs.j2c.                        *
*                      ThreadIdentitySecurityHelper.           *
*                      finalizeSubject(                        *
*                      ThreadIdentitySecurityHelper.java:397)  *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
The servlet's init method may be called during server
initialization. If this method issues a getConnection()
request before the received subject or invocation subject is
set, an IllegalStateException() is thrown. The above errors
are the result.
Problem conclusion
The proper identity at this point is server.
WSLocalzOSCredentialImpl.getInvocationSubject() was modified to
return the server subject if no Invocation or Received subject
is found.

APAR PQ90648 is associated with SERVICE LEVEL W502014 of
WebSphere Application Server V5.0 for z/OS.
Temporary fix Comments
APAR information
APAR number PQ90648
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 2004-06-25
Closed date 2004-08-05
Last modified date 2004-09-03

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:
PQ90948

Modules/Macros
BBOUBINF          

Publications Referenced

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

Applicable component levels
R500 PSY UQ91441    UP04/08/23 P F408

  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: swg1PQ90648.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 #: PQ90648
IBM Group: Software Group
Modified date: Sep 3, 2004