CDI In Embedded EJBContainer Fails with java.lang.UnsupportedOperationException (Doc ID 2064340.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

Using the WebLogic 12.1.2.0 embedded EJB container for JUnit testing, when running the container, it fails if META-INF/beans.xml (needed for CDI) exists on the classpath.

The following exception occurs:

java.lang.UnsupportedOperationException: authenticatedLookup is unavailable for BasicNamingNode types
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:463)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:274)
at weblogic.jndi.internal.ServerNamingNode_12120_WLStub.authenticatedLookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:483)
at weblogic.application.ApplicationAccess.getApplicationIdFromJndi(ApplicationAccess.java:62)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms