IBM Support

PI85892:classcastexceptions while doing a naming lookup for beanmanger

Download


Abstract

classcastexceptions while doing a naming lookup for beanmanger

Download Description

PI85892 resolves the following problem:

ERROR DESCRIPTION:
ClassCastExceptions while doing a naming lookup for beanManger.

###
8/4/17 2:29:32:944 CDT] 000000c5 webapp E
com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E:
[Servlet Error]-[mvc-dispatcher]: java.lang.NoClassDefFoundError:

Caused by: java.lang.ClassCastException: javax.naming.Reference
incompatible with javax.enterprise.inject.spi.BeanManager
###

LOCAL FIX:
None

PROBLEM SUMMARY

USERS AFFECTED:
All users of IBM WebSphere Application Server who do not use CDI but use a third party library that uses jndi to access CDI such as jersey.

PROBLEM DESCRIPTION:
JNDI is returning a Reference object instead of a null when CDI is disabled, resulting in the following exception:
java.lang.ClassCastException: javax.naming.Reference incompatible with javax.enterprise.inject.spi.BeanManager


RECOMMENDATION:
None

PROBLEM CONCLUSION:
An exception which was frequently hit during normal operation was replaced with a logging message. However this change resulted in JNDI returning Reference objects instead of nulls when looking up a BeanManager. To fix this we reverted the change and re-introduced the exceptions.

The fix for this APAR is currently targeted for inclusion in fix pack 8.5.5.13. Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

None

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"V85 Readme","INLang":"US English","INSize":"3949","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI85892/8.5.5.12/readme.txt"}]
On
[{"DNLabel":"8.5.5.12-WS-WASProd-IFPI85892","DNDate":"08-24-2017","DNLang":"US English","DNSize":"253383","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Application+Server&release=All&platform=All&function=fixId&fixids=8.5.5.12-WS-WASProd-IFPI85892&includeSupersedes=0","DNURL_FTP":null,"DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.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).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF013","label":"Inspur K-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF014","label":"iOS"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5.12","Edition":"Network Deployment;Single Server","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24043996