Fixes are available
PI63621:
9.0.0.1: WebSphere Application Server traditional V9.0 Fix Pack 1
9.0.0.2: WebSphere Application Server traditional V9.0 Fix Pack 2
9.0.0.3: WebSphere Application Server traditional V9.0 Fix Pack 3
9.0.0.4: WebSphere Application Server traditional V9.0 Fix Pack 4
9.0.0.5: WebSphere Application Server traditional V9.0 Fix Pack 5
9.0.0.6: WebSphere Application Server traditional V9.0 Fix Pack 6
9.0.0.7: WebSphere Application Server traditional V9.0 Fix Pack 7
9.0.0.8: WebSphere Application Server traditional V9.0 Fix Pack 8
9.0.0.9: WebSphere Application Server traditional V9.0 Fix Pack 9
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
9.0.5.4: WebSphere Application Server traditional Version 9.0.5 Fix Pack 4
9.0.5.5: WebSphere Application Server traditional Version 9.0.5 Fix Pack 5
WebSphere Application Server traditional 9.0.5.6
9.0.5.7: WebSphere Application Server traditional Version 9.0.5 Fix Pack 7
9.0.5.8: WebSphere Application Server traditional Version 9.0.5.8
9.0.5.9: WebSphere Application Server traditional Version 9.0.5.9
9.0.5.10: WebSphere Application Server traditional Version 9.0.5.10
9.0.5.11: WebSphere Application Server traditional Version 9.0.5.11
APAR status
Closed as program error.
Error description
Singleton beans which are created from annotations may be incorrectly marked as local beans.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server * **************************************************************** * PROBLEM DESCRIPTION: The processing of a singleton bean * * which is defined through annotations * * incorrectly marks the singleton bean * * as a local bean. * **************************************************************** * RECOMMENDATION: * **************************************************************** The processing of a singleton bean which is defined through annotations incorrectly marks the singleton bean as a local bean. The problem can be be detected by reviewing the metadata generated for the bean. Metadata for an EJB JAR file, including metadata which is obtained from annotations, is written to the META-INF/ejb-jar_merged.xml file. The file is stored in a profile specific folder for the EJB JAR file, for example: WAS_HOME/profiles/PROFILE_NAME/config/cells/CELL_NAME/applicatio ns/ APPLICATION_NAME.ear/deployments/ APPLICATION_NAME/EJBJAR_NAME.jar/ META-INF/ejb-jar_merged.xml For example, for the following singleton bean: @Singleton @Local(LocalBusinessInterface.class) @Remote(RemoteBusinessInterface.class) public class AnnotationSingletonBean { @PostConstruct public void postConstruct() { } @PreDestroy public void preDestroy() { } } The following incorrect metadata for the single bean is written: <session> <ejb-name>AnnotationSingletonBean</ejb-name> <business- local>suite.r90.ejb32.ejbendpoints.content.ejb.LocalBu sinessInterface</business-local> <business- remote>suite.r90.ejb32.ejbendpoints.content.ejb.Remote BusinessInterface</business-remote> <ejb- class>suite.r90.ejb32.ejbendpoints.content.ejb.AnnotationSi ngletonBean</ejb-class> <session-type>Singleton</session-type> <concurrency-management-type>Container</concurrency-management- t ype> <local-bean/> <post-construct> <lifecycle-callback- class>suite.r90.ejb32.ejbendpoints.content.e jb.AnnotationSingletonBean</lifecycle-callback-class> <lifecycle-callback-method>postConstruct</lifecycle-callback- met hod> </post-construct> <pre-destroy> <lifecycle-callback- class>suite.r90.ejb32.ejbendpoints.content.e jb.AnnotationSingletonBean</lifecycle-callback-class> <lifecycle-callback-method>preDestroy</lifecycle-callback- method > </pre-destroy> </session> The metadata is correct except for the <local-bean/> element. The <local-bean/> element should not be present for this bean. Because this singleton bean does not have an @LocalBean annotation and does have @Local and @Remote annotations, the <local-bean/> element should not have been added. The <local-bean/> element should only be added when the bean has no other endpoint. A bean should not be marked as a local bean if at least one endpoint is specified for the bean. An endpoint for a bean can be specified through a deployment descriptor, by using an annotation supplied directly on the bean class, or specified by using an annotation supplied on an interface implemented by the bean class. An endpoint for a bean is specified as a local endpoint, as a remote endpoint, as a local home endpoint, as a remote home endpoint, or as a web service endpoint. More than one type of endpoint can be specified.
Problem conclusion
A code update was made which corrects the processing of singleton beans. The fix for this APAR is currently targeted for inclusion in fix pack 9.0.0.1. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PI63621
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-06-07
Closed date
2016-06-24
Last modified date
2016-08-10
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
WEBSPHERE APP S
Fixed component ID
5724J0800
Applicable component levels
R900 PSY
UP
Document Information
Modified date:
04 May 2022