IBM Support

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

Flash (Alert)


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


Version affected:

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

For WebSphere Application Server traditional V8.5.5.12:

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

Related information

Document information

More support for: WebSphere Application Server

Software version:

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: