IBM Support

Flash : ClassCastExceptions while doing a naming lookup for beanManger in WebSphere Application Server Traditional 8.5.5.12

Flash (Alert)


Abstract

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

Content

Version affected:

  • WebSphere Application Server Traditional 8.5.5.12 only. No other WebSphere Application Server versions are affected by this issue.
Users Affected:
  • All users of IBM WebSphere Application Server traditional 8.5.5.12 who do not use CDI but use a third party library that uses JNDI to access CDI such as Jersey

Remediation:
For WebSphere Application Server traditional V8.5.5.12:

· Apply Interim Fix PI85892
--OR--
· Enable CDI by adding beans.xml file in the Application
--OR--
· Apply Fix Pack 8.5.5.13 or later (targeted availability 05 February 2018)

Related information

Document information

More support for: WebSphere Application Server

Software version: 8.5.5.12

Operating system(s): AIX, HP-UX, IBM i, Linux, Solaris, Windows

Software edition: Base, Network Deployment

Reference #: 2008092

Modified date: 13 September 2017


Translate this page: