PQ90648: GETCONNECTION FAILS IN SERVLET INIT METHOD IF RESAUTH=CONTAINER AND THERE IS NO CONTAINER-MANAGED ALIAS DEFINED FOR DATASOURCE | |||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||
![]() 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 is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: PQ90948 Modules/Macros
Publications Referenced
|
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
(C) Copyright IBM Corporation 2000, 2009. All Rights Reserved.