0 Replies Latest reply: Apr 3, 2014 11:43 AM by 51f8548e-6c88-472c-a2aa-cda0432e7b77 RSS

    CDI in Embedded EJBContainer not working

    51f8548e-6c88-472c-a2aa-cda0432e7b77

      Hello,

       

      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:

       

      Caused
      by:
      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(
      WLContextImpl.java:483)

       

       

      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

       

      wlserver\samples\examples\src\examples\javaee6\ejb\embeddableContainer

      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!