0 Replies Latest reply on Apr 3, 2014 4:43 PM by 51f8548e-6c88-472c-a2aa-cda0432e7b77

    CDI in Embedded EJBContainer not working




      I am having really annoying problems with running the Embedded EJBContainer and CDI!


      Scenario: Using WLS 12.1.2 and trying to use Embedded EJBContainer for Unit-Tests.


      Running the embedded container fails with following exception:


      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(UnknownSource)
            at weblogic.jndi.internal.WLContextImpl.lookup(



      This happens as soon as a beans.xml is present in META-INF directory. Without it,
      the container runs, but no CDI is active!


      I tried the supplied examples



      Unfortunately the example does not use CDI!


      But as soon as you copy a beans.xml in the META-INF folder, it fails!! Can anybody double-check, please?

      Really fighting with it for days now...


      Is this a bug in Weblogic Embedded Container? Does anybody have a working example of a
      Weblogic Embedded Container running with CDI?


      Thank you!