Download
Abstract
During the deployment of enhanced enterprise archives (EAR) from the administrative console, the deployment process may fail at the step "Map Resource references to Resources".
Download Description
PK37272 resolves the following problem:
ERROR DESCRIPTION:
Application Deployment fails at v6.0.2.17 for applications with resources because of a code change made in PK23320
After an upgrade to v6.0.2.17, pplication Deployment for an application containing resources will fail at step "Map resource reference to resources". (Examples of resources include Datasources, JMS Queues, etc...)
The SystemOut.log will show the following:
[1/8/07 15:23:31:385 EST] 00000031 ServletWrappe A SRVE0242I: [adminconsole] [/ibm/console]
[/com.ibm.ws.console.appmanagement/MapResRefToEJB.jsp]: Initialization successful.
[1/8/07 15:23:33:635 EST] 00000030 ResourceValid A validateResources
[1/8/07 15:23:33:651 EST] 00000030 RequestProces W org.apache.struts.action.RequestProcessor processException Unhandled Exception thrown: class java.lang.NullPointerException
[1/8/07 15:23:33:666 EST] 00000030 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet action. Exception thrown : javax.servlet.ServletException
.....
---- Begin backtrace for Nested Throwables
java.lang.NullPointerException
at
com.ibm.ws.management.configservice.WorkspaceHelper.getContext(WorkspaceHelper.java(Compiled Code))
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._addObjectsToTbl(ResourceValidationHelper.java:2323)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._getResourceObjectsWithRefKeysForOneScope(ResourceValidationHelper.java:723)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._getResourceObjectsWithRefKeys(ResourceValidationHelper.java:637)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:2050)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:1963)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper._taskResourceValidation(ResourceValidationHelper.java:859)
at
com.ibm.websphere.management.application.client.ResourceValidationHelper.taskResourceValidation(ResourceValidationHelper.java:334)
at
com.ibm.ws.console.appmanagement.ResourceValidationHelper.validateResources(ResourceValidationHelper.java:169)
at
com.ibm.ws.console.appmanagement.action.MapResRefToEJBAction.execute(MapResRefToEJBAction.java:261)
This problem only occurs when deploying with the Administrative Console.
LOCAL FIX:
PROBLEM SUMMARY
USERS AFFECTED:
Users of Websphere Application Server who try to deploy an enhanced enterprise archive (EAR) file on service pack 6.0.2.17.
PROBLEM DESCRIPTION:
During the deployment of enhanced enterprise archives (EAR) from the administrative console, the
deployment process may fail at the step "Map Resource references to Resources" with a NullPointerException.
RECOMMENDATION:
None
The NullpointerException was thrown on trying to get a context for the resource from Workspace. Since the resources being looked up are part of the application, there would be not a context so a null context is returned.
Here is the stack of the Exception from the SystemOut.log:
java.lang.NullPointerException
at com.ibm.ws.management.configservice.WorkspaceHelper.getContext(WorkspaceHelper.java(Compiled Code))
at com.ibm.websphere.management.application.client.ResourceValidationHelper._addObjectsToTbl
(ResourceValidationHelper.java:2323)
PROBLEM CONCLUSION:
Code changes were made so that for all application scoped resources, a predefined context is given.
The APAR has been integrated into service pack 6.0.2.18. Also, an interim fix is being made available for 6.0.2.17.
Please refer to the recommended updates page for delivery information
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Prerequisites
Please download the UpdateInstaller below to install this fix.
Installation Instructions
Please review the readme.txt for detailed installation instructions.
Technical Support
Contact IBM Support using SR (http://www-306.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV(U.S. only).
Problems (APARS) fixed
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg24014804